开发者

Problem signing jars for web applet

开发者 https://www.devze.com 2023-02-01 05:00 出处:网络
keytool -genkey -keystore myKeyStore -alias me keytool -selfcert -keystore myKeyStore -alias me jarsigner -keystore myKeyStore jarfile.jar me
  1. keytool -genkey -keystore myKeyStore -alias me

  2. keytool -selfcert -keystore myKeyStore -alias me

  3. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消