00m.Ru
7Апр/170

Добавляем свой CA в систему

 

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 ""

Windows

# Add
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
Метки записи: , , , Нет комментариев