浏览 3369 次
锁定老帖子 主题:Applet中的数字签名
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2009-06-11
最后修改:2009-06-11
用keytool -genkey 生成了一个自己的私钥,然后用jarsigner 对已经生成的applet应用jar包进行签名,但是在浏览器第一次加载此applet应用时控制台就报异常: java.security.cert.CertificateParsingException: no more data allowed for version 1 certificate at sun.security.x509.X509CertInfo.parse(Unknown Source) at sun.security.x509.X509CertInfo.<init>(Unknown Source) at sun.security.x509.X509CertImpl.parse(Unknown Source) at sun.security.x509.X509CertImpl.<init>(Unknown Source) at sun.security.provider.X509Factory.parseX509orPKCS7Cert(Unknown Source) at sun.security.provider.X509Factory.engineGenerateCertificates(Unknown Source) at java.security.cert.CertificateFactory.generateCertificates(Unknown Source) at com.sun.deploy.security.WIExplorerCertStore.generateCertificate(Unknown Source) at com.sun.deploy.security.WIExplorerCertStore.loadCertificates(Native Method) at com.sun.deploy.security.WIExplorerCertStore.load(Unknown Source) 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) 不知道什么原因,有没有人遇到过。 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2009-08-17
我也遇到了,但是没有解决
|
|
返回顶楼 | |