Skip to content

Instantly share code, notes, and snippets.

@kadamwhite
Created July 3, 2018 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kadamwhite/6faa8ae02803ee94c24b5a9768f2e954 to your computer and use it in GitHub Desktop.
Save kadamwhite/6faa8ae02803ee94c24b5a9768f2e954 to your computer and use it in GitHub Desktop.
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.

macOS

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

Windows

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