Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / May 2004

Tip: Looking for answers? Try searching our database.

what is the simplest way of having a signed applet?

Thread view: 
b83503104 - 02 May 2004 14:08 GMT
My applet wants to list the local files and directories
(using JFileChooser),
so I thought I should sign the applet.

I use this to sign my applet:

javac SimplePaint.java
jar cvf SimplePaint.jar SimplePaint.class
keytool -delete -alias SimplePaint
keytool -genkey -alias SimplePaint -validity 365
jarsigner SimplePaint.jar SimplePaint

Is there a faster way to do it?  I don't want to go through the questions each time.
Thanks!!
Roedy Green - 03 May 2004 01:05 GMT
>javac SimplePaint.java
>jar cvf SimplePaint.jar SimplePaint.class
the following two steps are unnecessary. Just create a certificate
once and for all and keep using it.  See
http://mindprod.com/jgloss/keytool.html

>keytool -delete -alias SimplePaint
>keytool -genkey -alias SimplePaint -validity 365

>jarsigner SimplePaint.jar SimplePaint

you can use set parameters to avoid typing the password every time.

here is what I typically use in a bat file.

jarsigner -storepass %jarsignerpassword %package%.jar cmprsacert

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.