Skip to content

Instantly share code, notes, and snippets.

@keshavab
Last active November 20, 2017 13:11
Show Gist options
  • Save keshavab/9c00b3875d50abb35c7d456a71768861 to your computer and use it in GitHub Desktop.
Save keshavab/9c00b3875d50abb35c7d456a71768861 to your computer and use it in GitHub Desktop.
Add a root certificate to Trusted Bundle

Centos

  1. Add the certificate to trust store

$cp root.crt /etc/pki/ca-trust/source/anchors

  1. Update trust bundle

$update-ca-trust extract

Alpine

  1. Add the certificate to trust store

$cp root.crt /usr/local/share/ca-certificates/

  1. Update trust bundle

$update-ca-certificates

ubuntu

  1. Add the certificate to trust store

$cp root.crt /usr/local/share/ca-certificates/

  1. Update trust bundle

$update-ca-certificates

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