Skip to content

Instantly share code, notes, and snippets.

@leommoore
Created June 21, 2014 17:19
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save leommoore/4a91060520333c25d93b to your computer and use it in GitHub Desktop.
Save leommoore/4a91060520333c25d93b to your computer and use it in GitHub Desktop.
Ubuntu - Adding CA Certs

#Ubuntu - Adding CA Certs

To add new Certificate Authority (CA) certs:

  1. Create a directory (ie extra) in the ca-certs to hold the new certs

    sudo mkdir /usr/share/ca-certificates/extra

  2. Copy or move the certs into the new directory

    sudo cp *.crt /usr/share/ca-certiciates/extra

  3. Tell ubuntu to add this directory to the certs list

    sudo dpkg-reconfigure ca-certificates

@diarmuidbourke
Copy link

Step 2 has a typo. It should read: sudo cp *.crt /usr/share/ca-certificates/extra

@hanxue
Copy link

hanxue commented Jun 10, 2021

A non-interactive way to update the CA Cert:

sudo cp *crt  /usr/local/share/ca-certificates/
sudo update-ca-certificates

Source: https://stackoverflow.com/a/23885181/399759

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment