0
当我尝试导入我的证书使用keytool
密钥存储导入证书时,它显示我:产生java.io.IOException:非法使用页脚密钥工具
keytool error: java.security.cert.CertificateException: java.io.IOException: Illegal footer: ----END CERTIFICATE-----
java.security.cert.CertificateException: java.io.IOException: Illegal footer: ----END CERTIFICATE-----
at sun.security.provider.X509Factory.engineGenerateCertificates(X509Factory.java:337)
at java.security.cert.CertificateFactory.generateCertificates(CertificateFactory.java:462)
at sun.security.tools.KeyTool.installReply(KeyTool.java:2571)
at sun.security.tools.KeyTool.doCommands(KeyTool.java:998)
at sun.security.tools.KeyTool.run(KeyTool.java:340)
at sun.security.tools.KeyTool.main(KeyTool.java:333)
Caused by: java.io.IOException: Illegal footer: ----END CERTIFICATE-----
at sun.security.provider.X509Factory.checkHeaderFooter(X509Factory.java:590)
at sun.security.provider.X509Factory.readOneBlock(X509Factory.java:575)
at sun.security.provider.X509Factory.parseX509orPKCS7Cert(X509Factory.java:413)
at sun.security.provider.X509Factory.engineGenerateCertificates(X509Factory.java:335)
... 5 more
我已经成功地将CA证书到我的密钥存储区而不任何问题。谁能帮忙?有没有语法错误?我使用Glassfish的3.1.2.2与Java 7