Problem signing jars for web applet
keytool -genkey -keystore myKeyStore -alias me
keytool -selfcert -keystore myKeyStore -alias me
jarsigner -keystore myKeyStore jarfile.jar me
I'm using this way to sign jars. I use my jar and a few more as libraries and all of them are signed this way, still开发者_如何学Go, when I open the browser I get the warning that there is signed and unsigned code. So this is confusing me... :/
http://dl.dropbox.com/u/1430071/images/errormessage.png
In the article Mixing Signed and Unsigned Code, the section entitled Deploying Signed Applications and Applets Securely Without a Mixed Code Warning offers two alternatives available in Java SE 6 Update 19 and later.
Addendum: Use jarsigner -verbose -verify
to see additional information about signature details.
You're signing your code with a self-signed certificate. You need to get a code signing certificate from an actual CA (costs $$$) and sign your code with that instead.
精彩评论