Mac OS X
# Add
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ~/new-root-certificate.crt
# Remove
sudo security delete-certificate -c «»
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ~/new-root-certificate.crt
# Remove
sudo security delete-certificate -c «»
Windows
# Add
certutil -addstore -f «ROOT» new-root-certificate.crt
# Remove
certutil -delstore «ROOT» serial-number-hex
certutil -addstore -f «ROOT» new-root-certificate.crt
# Remove
certutil -delstore «ROOT» serial-number-hex
Linux (Ubuntu, Debian)
# Add
# Copy your CA to dir /usr/local/share/ca-certificates/
cp foo.crt /usr/local/share/ca-certificates/foo.crt
update-ca-certificates
# Remove
# Remove your CA.
update-ca-certificates —fresh
# Copy your CA to dir /usr/local/share/ca-certificates/
cp foo.crt /usr/local/share/ca-certificates/foo.crt
update-ca-certificates
# Remove
# Remove your CA.
update-ca-certificates —fresh
Добавить комментарий