有没有人遇到过他们必须处理.truststore文件的地方?知道如何将.cer导入.truststore文件吗?
我不确定是否必须使用Java Keytool或Linux命令(如openssl命令)。
谢谢
发布于 2008-12-17 00:42:23
# Copy the certificate into the directory Java_home\Jre\Lib\Security
# Change your directory to Java_home\Jre\Lib\Security>
# Import the certificate to a trust store.
keytool -import -alias ca -file somecert.cer -keystore cacerts -storepass changeit [Return]
Trust this certificate: [Yes]
changeit是默认的信任库密码
发布于 2012-05-24 04:34:45
除了使用sed
过滤证书之外,您还可以通过openssl x509 -out certfile.txt
管道传输openssl s_client
输出,例如:
echo "" | openssl s_client -connect my.server.com:443 -showcerts 2>/dev/null | openssl x509 -out certfile.txt
https://stackoverflow.com/questions/373295
复制相似问题