Re: Problem Signing midlet .jar file.

[email protected] Thu, 28 Aug 2008 03:45:57 PDT
Newsgroups gmane.comp.java.sun.kvm
Message-ID <[email protected]>
It seems to me that there is some inconsistency in certificate request/import sequence.
I did it in following way:
1. ...\keytool.exe -genkey -validity 1800 -keyalg rsa -keystore <KS> [b]-alias applet_signing[/b]
2. ...\keytool.exe" -importcert -trustcacerts -keystore <KS> -storepass <password> [b]-alias applet_signing[/b] -file cert.cer

See that I have used the same alias while importing certificate.
To sign applet I use following command line:
...\jarsigner.exe -storepass <password> -keystore <KS> applet.jar [b]applet_signing[/b]

It works fine for me - all certificate info loaded correctly (expiration date, issuer...).

Try to import your certificate using correct alias and keystore, also you can verify certificate import correctness by  following command:
...\keytool.exe -list -v -keystore <KS> -storepass <password> [b]-alias applet_signing[/b]
[Message sent by forum member 'artem_kustikov' (artem_kustikov)]

http://forums.java.net/jive/thread.jspa?messageID=295859

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff KVM-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".