傅令江的光影色彩世界
添加自签名https证书到centos系统信任的问题
2021-3-4 傅令江

openssl s_client -showcerts -connect www.05bt.com:443

首先把证书查询出来


然后

添加到信任文件中,root也没写权限先加上

chmod u+w /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem

然后直接编辑文件,将证书内容添加到末尾

搞定!



# 将受信任的根证书下载到

 /etc/pki/ca-trust/source/anchors/ 目录 

wget http://extca.exsvc.vip/crt/root.crt -O /etc/pki/ca-trust/source/anchors/extca.crt

 # 更新受信任的根证书 update-ca-trust

发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容