但行好事
莫论前程❤

证书报错CertificateException

java.security.cert.CertificateException:sun.security.pkcs.ParsingException:  X509.ObjectIdentifier() -- data isn't an object ID (tag = 48)
   at java.security.cert.CertificateException.generateCertificates(Unknown Source)
   at sun.security.pkcs.PKCS7.parse(PKCS7.java:118)
   at sun.security.pkcs.PKCS7.<init>(PKCS7.java:68)
   at sun.security.provider.X509Factory.parseX509orPKCS7Cert(X509Factory.java:348)
   at sun.security.provider.X509Factory.engineGenerateCertificates(X509Fact
ory.java:240)
   at java.security.cert.CertificateFactory.generateCertificates(
    CertificateFactory.java:511)
   at sun.security.tools.KeyTool.installReply(KeyTool.java:1193)
   at sun.security.tools.KeyTool.doCommands(KeyTool.java:504)
   at sun.security.tools.KeyTool.run(KeyTool.java:124)
   at sun.security.tools.KeyTool.main(KeyTool.java:118)
Caused by: java.io.IOException: X509.ObjectIdentifier() -- data isn't an object
ID (tag = 48)
   at sun.security.util.ObjectIdentifier.<init>(ObjectIdentifier.java:134)
   at sun.security.util.DerInputStream.getOID(DerInputStream.java:245)
   at sun.security.pkcs.ContentInfo.<init>(ContentInfo.java:120)
   at sun.security.pkcs.PKCS7.parse(PKCS7.java:136)
   at sun.security.pkcs.PKCS7.parse(PKCS7.java:115)
   ... 8 more

原因:

# 在服务器上用vim直接修改了ceb.jar中的配置文件,导致已经签名的文件,被破坏掉了。
# 解决方案:寻找原始文件进行替换。
赞(1) 打赏
未经允许不得转载:刘鹏博客 » 证书报错CertificateException
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!

 

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏