centos7安装根证书
1. 将证书复制到 /etc/pki/ca-trust/source/anchors/ 文件夹,本文以mitmproxy的https证书为例
cp /root/.mitmproxy/mitmproxy-ca-cert.cer /etc/pki/ca-trust/source/anchors/
2. 移动到将此证书软连接至 /etc/ssl/certs/文件夹中
ln -s /etc/pki/ca-trust/source/anchors/mitmproxy-ca-cert.cer /etc/ssl/certs/mitmproxy-ca-cert.cer
3. 运行 update-ca-trust,更新系统的证书
update-ca-trust
Ubuntu
mitmproxy-ca-cert.cer
复制到 /usr/local/share/ca-certificates/
,然后执行 update-ca-certificates 即可
sudo cp ca.crt /usr/local/share/ca-certificates/mitmproxy-ca-cert.cer
sudo update-ca-certificates