digital-certificate - 使用数字证书 : How to import . cer 文件到 .truststore 文件中?

标签 digital-certificate truststore

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

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

谢谢

最佳答案

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

关于digital-certificate - 使用数字证书 : How to import . cer 文件到 .truststore 文件中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/373295/

相关文章:

php - 如何使用PHP从浏览器检查数字签名

验证signtool签署的数字签名的Java程序

android - 如何找到适用于 Android 和 iOS 的可信证书?

web-services - 从 Axis2 Web 服务内部设置 javax.net.ssl.trustStore

database - 在 dbcp2.BasicDataSource 中配置 SSL

java - 在 BouncyCaSTLe 中生成 X.509 证书时出现吊销状态未知错误

php - 如何在 PHP 中创建数字证书并导出到 .p12 文件?

rest - 如何将信任库与 pentaho 数据集成/Rest 客户端一起使用?

java - 尝试在 Spring Boot 中启用自签名 SSL 认证时出现 FileNotFoundException

java - 使用 keytool [Windows 7] 在 jre 中导入 .pem 文件