证书首先是pem格式,然后以crt为后缀格式
ubuntu上:
cp aaa.crt /usr/local/share/ca-certificates
update-ca-certificates -f
Centos 上
cp aaa.crt /etc/pki/ca-trust/source/anchors
update-ca-trust enable
update-ca-trust
If your certificate is in the extended BEGIN TRUSTED file format,then place it into the main source/ directory instead.
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!