tangguo

数字证书:如何使用.cer文件将.cer文件导入?

android

有没有人遇到过他们必须处理.truststore文件的地方?并且知道如何将.cer导入.truststore文件?

我不确定是否必须使用Java Keytool或Linux命令(例如openssl命令)。

谢谢


阅读 1265

收藏
2020-11-19

共1个答案

小编典典

# 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是默认的信任库密码

2020-11-19