Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Proposed roborourke/chassis-openssl README change (WIP0)

Adding the certificate to your keychain

To avoid the red "your connection is not encrypted" message, you'll have to add the generated .cert to your keychain.


sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain yourlocaldomain.cert


certutil -addstore -f "ROOT" yourlocaldomain.cert

Linux (Ubuntu, Debian)

Ensure the ca-certificates package is installed (sudo apt-get install ca-certificates) before proceeding.

# Copy .cert file to /usr/local/share/ca-certificates, and change extension to .crt
sudo cp yourlocaldomain.cert /usr/local/share/ca-certificates/yourlocaldomain.crt

# Rebuild your certificate authority, making sure to select your new .crt in the process
dpkg-reconfigure ca-certificates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.