I truly enjoyed the latest flick of Aamir, the preacher. It’s interesting to see Bollywood coming up with good messages and this time for better education system. Its second tryst by Aamir, the first one was taare zamine per, where he tried to show the challenges around a student’s life and now again in 3 idiots he has brought some good points about the process we follow in colleges.
Although this movie is loosely based on Chetan bhagat’s 5 point someone but it has got its own charm and an entertaining way to put across the strong message. I believe it’s a good eye opener for all Indians including students, parents, teachers and honorable education minister. It a must watch for one and all. If you think you will go and get tickets at show time then you are wrong. Go with an advance booking. By the way I managed to get ticket in black :-)
A Tech and Social blog to share latest and greatest stuff from areas like Web technology, eCommerce , Travel and many more ...
Monday, December 28, 2009
Tuesday, December 22, 2009
Signed Applet and how to make a signed jar
A signed Applet is a trusted Applet (applet will reside inside a jar). In order to get access to the file system all jar files in an application must be signed. By default for security reasons, Java applets are contained within a sandbox.
This means that the applets can’t do anything, which might be threatening to the user’s machine (e.g. reading, writing or deleting local files, putting up message windows, or querying various system parameters).
Early browsers had no provisions for Java applets to reach outside of the sandbox. Recent browsers, however have provisions to give “trusted” applets the ability to work outside the sandbox. For this power to be granted to one of your applets, the applet’s code must be digitally signed with your unforgettable digital ID, and then the user must state that he trusts applets signed with your ID. The mistrusted applet can request to have privileges outside the sand box but will have to request the user for privileges every time it executes. But with the trusted applet the user can choose to remember their answer to the request, which means they won’t be asked again.
Let’s see what it takes to create your own signed applets. There are few tools given by Sun to create your own signed applets. It mainly comprise of three main steps.
(1) First step is generating a keypair with the keytool.
D:/j2sdk1.5/bin/keytool -genkey -alias green -keypass greenpass
green is the alias for the keypair, and greenpass is the password to access that alias(or keypair). The keypair
will be stored in the file .keystore in your homedirectory unless you specify otherwise.
You'll be asked a lot of questions, you may lie or just hit enter!
(2) Create a self-signed certificate.
D:/j2sdk1.5/bin/keytool -selfcert -alias green
(3) After the keypair has been generated the jar file can be signed with jarsigner.
jarsigner YourJarFileName alias
d:/j2sdk1.5/bin/jarsigner Test.jar green
It will ask for both passwords specified while generating the keys.
The jar file has now been signed. Now you can distribute this jar file to anyone or it can run on any system with the privilege to access your file system.
Note: this signature is only valid for 6 months. After that it will expire so you probably need to sign it again after 6 months.
This means that the applets can’t do anything, which might be threatening to the user’s machine (e.g. reading, writing or deleting local files, putting up message windows, or querying various system parameters).
Early browsers had no provisions for Java applets to reach outside of the sandbox. Recent browsers, however have provisions to give “trusted” applets the ability to work outside the sandbox. For this power to be granted to one of your applets, the applet’s code must be digitally signed with your unforgettable digital ID, and then the user must state that he trusts applets signed with your ID. The mistrusted applet can request to have privileges outside the sand box but will have to request the user for privileges every time it executes. But with the trusted applet the user can choose to remember their answer to the request, which means they won’t be asked again.
Let’s see what it takes to create your own signed applets. There are few tools given by Sun to create your own signed applets. It mainly comprise of three main steps.
(1) First step is generating a keypair with the keytool.
D:/j2sdk1.5/bin/keytool -genkey -alias green -keypass greenpass
green is the alias for the keypair, and greenpass is the password to access that alias(or keypair). The keypair
will be stored in the file .keystore in your homedirectory unless you specify otherwise.
You'll be asked a lot of questions, you may lie or just hit enter!
(2) Create a self-signed certificate.
D:/j2sdk1.5/bin/keytool -selfcert -alias green
(3) After the keypair has been generated the jar file can be signed with jarsigner.
jarsigner YourJarFileName alias
d:/j2sdk1.5/bin/jarsigner Test.jar green
It will ask for both passwords specified while generating the keys.
The jar file has now been signed. Now you can distribute this jar file to anyone or it can run on any system with the privilege to access your file system.
Note: this signature is only valid for 6 months. After that it will expire so you probably need to sign it again after 6 months.
Subscribe to:
Posts (Atom)
Popular Posts
-
In this post I have tried to explore Cartridges and Endeca Assembler Application by examining how they work together in a "Hello Wor...
-
E xploring new software and tool is always exciting and fun way to learn new stuff. With ATG Commerce v11 Oracle has replaced ATG Se...
-
H ope most of you must be knowing about Dynamo Application Framework ( DAF ) and Nucleus concepts in ATG . I have just tried to summarized t...
-
Recently started exploring Hybris commerce suite 5.0.4 and have some of the interesting facts to share. So let’s start with basics. ...
-
Just read one of the white papers from ATG's site , liked the way they have explained about Data Anywhere Architecture. Thought to shar...
-
Well we all have been writing the classic JUnit tests from years now but it becomes challenging to write test cases when you dealing w...
-
Here are some of the commonly used FormHandlers, although ATG provides many out of the box FormHandlers and even we can write our own custom...
-
Recently faced couple of issues with running the Purge Service under BCC and had to do some tuning to finally make it work on large vol...
-
Time to explore barebone concepts around Endeca commerce guided search v11.1. It’s vital to understand the key concepts before moving ahe...
-
R ecently installed ATG search 9.3 on local windows machine and configured search environment and index. It was a good fun as it gave quit...