运行Applet出现java.security.cert.CertificateParsingException

深山老叔 2012-07-12 08:56:13
运行applet的时候,出现这个证书什么版本错误的,求大虾帮忙。。。
客户端环境:win7 家庭版/IE8


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.WIExplorerCertStore.load(Unknown Source)
at com.sun.deploy.security.LazyRootStore.loadBrowserStore(Unknown Source)
at com.sun.deploy.security.LazyRootStore.getTrustAnchors(Unknown Source)
at com.sun.deploy.security.TrustDecider.validateChain(Unknown Source)
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.isAppletSigned(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

...全文
632 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
ccqqct 2013-04-22
  • 打赏
  • 举报
回复
引用 7 楼 yangqi900 的回复:
有没有人遇到这种情况啊,虽说可能不太影响使用,但毕竟是个问题啊
我也遇到了,只是极少部分人有这情况,有的是好的。而且提示包含签名代码及未签名代码,是否阻止运行。我明显是用的jar包一起签的。而且只有这么一个jar包
maxxan 2012-10-08
  • 打赏
  • 举报
回复
这个问题不是jar包的签名证书引起的。而是验证jar包签名时,会遍历IE中的所有证书,如果某个证书是版本1,又包含扩展属性,就会出现这个问题。如工行的某个根证书:CCB CA Root
深山老叔 2012-07-13
  • 打赏
  • 举报
回复
有没有人遇到这种情况啊,虽说可能不太影响使用,但毕竟是个问题啊
brightyq 2012-07-12
  • 打赏
  • 举报
回复
no more data allowed for version 1 certificate

这里提示好像是版本1
深山老叔 2012-07-12
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]
数字证书版本低了,找个高点的版本吧。在网上搜下。
如果这个错误不影响使用,可以忽略。
[/Quote]

已经是版本3了啊

证书指纹:
MD5:38:95:3B:0C:7A:81:27:4F:94:FF:F6:48:6D:93:B3:59
SHA1:60:26:8A:00:99:3F:5F:0A:D1:D1:68:CC:36:93:E0:1F:2E:AA:C6:41
签名算法名称:SHA1withDSA
版本: 3


所谓的版本高,是什么意思啊??
brightyq 2012-07-12
  • 打赏
  • 举报
回复
数字证书版本低了,找个高点的版本吧。在网上搜下。
如果这个错误不影响使用,可以忽略。
深山老叔 2012-07-12
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 的回复:]

好像是本地的证书没有删除掉吧,删除干净了再将新版证书?
[/Quote]
不是哦,删了也管用
brightyq 2012-07-12
  • 打赏
  • 举报
回复
好像是本地的证书没有删除掉吧,删除干净了再将新版证书?
深山老叔 2012-07-12
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 的回复:]

no more data allowed for version 1 certificate

这里提示好像是版本1
[/Quote]

这个问题好郁闷,同样是win7 ie8,另外一台电脑就不会报这个错,难道是因为一个是家庭版一个是旗舰版,IE的版本号是一模一样的。

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧