linux安装根证书

 

各个系统安装根证书

mac os x

添加

sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ~/new-root-certificate.crt

删除

sudo security delete-certificate -c "<name of existing certificate>"

windows

添加

certutil -addstore -f "ROOT" new-root-certificate.crt

删除

certutil -delstore "ROOT" serial-number-hex

linux

添加

sudo cp foo.crt /usr/local/share/ca-certificates/foo.crt
sudo update-ca-certificates

删除

sudo rm /usr/local/share/ca-certificates/foo.crt
sudo update-ca-certificates --fresh

参考