我正在尝试根据这篇文章更新SSL证书。
我对证书一无所知,因此我按照这个指南进行操作。但是,当我输入时,出现了问题。
我对证书一无所知,因此我按照这个指南进行操作。但是,当我输入时,出现了问题。
keytool -keystore mycacerts -storepass changeit -importcert -file "C:\Users\Noks\Desktop\cacerts.pem" -v
I get the error:
keytool error: java.lang.Exception: Input not an X.509 certificate
java.lang.Exception: Input not an X.509 certificate
at sun.security.tools.KeyTool.addTrustedCert(KeyTool.java:1913)
at sun.security.tools.KeyTool.doCommands(KeyTool.java:818)
at sun.security.tools.KeyTool.run(KeyTool.java:172)
at sun.security.tools.KeyTool.main(KeyTool.java:166)
我该如何解决这个问题?