Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Certificate Exception after signing the applet

 
nagasre hrishikesh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to sign an applet.So to sign applet i am usign a self signed certificate. Once a new certificate is created i am changing the certificate to pkcs12 format using the below command:
openssl pkcs12 -export -in filename -out filename.tmp -passout pass:cs1k_key+pw -name "webssl"

the tmp file created by this command is used to generate the keystore file which is used by jarsigner to sign the applet.
Jar file containing the applet is signed but when i launch the applet i am getting the following exception:
java.security.cert.CertificateException: Check signature failed in certificate
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
at sun.plugin.security.PluginClassLoader.getPermissions(Unknown Source)
at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


I know the problem is in converting the certificate format to pkcs12 format using the openssl command.Can any body let me know what wrong data i am giving while changing the certificate format to pkcs12.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic