Skip to content

Instantly share code, notes, and snippets.

@JonathonReinhart
Last active October 20, 2016 11:59
Show Gist options
  • Save JonathonReinhart/abf7bfd924671d8f8458ad27bfa2d167 to your computer and use it in GitHub Desktop.
Save JonathonReinhart/abf7bfd924671d8f8458ad27bfa2d167 to your computer and use it in GitHub Desktop.
Windows (PowerShell) (DER format):
Invoke-WebRequest -UseBasicParsing http://example.com/example.cer -OutFile example.cer
certutil.exe -addStore "Root" example.cer
Debian 8 (PEM format):
# wget -O /usr/local/share/ca-certificates/example.crt http://example.com/example.cer
# update-ca-certificates
Fedora 22
https://fedoraproject.org/wiki/Features/SharedSystemCertificates:Testing#How_to_add_a_systemwide_CA
# wget -O /etc/pki/ca-trust/source/anchors/example.cer http://example.com/example.cer
# update-ca-trust
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment