数字证书:如何将.cer文件导入到.truststore文件中? [英] Digital Certificate: How to import .cer file in to .truststore file using?

查看:496
本文介绍了数字证书:如何将.cer文件导入到.truststore文件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Has anyone came across where they have to deal with .truststore file? and knowing how to import .cer into .truststore file?

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

I am not sure if I have to use Java Keytool or Linux command (such as openssl command).

谢谢

推荐答案

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

changeit is the default truststore password

这篇关于数字证书:如何将.cer文件导入到.truststore文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆