How to , and other stuff about linux, photo, php … Another blog just like others on internet

July 5, 2017

Adding trusted root certificates to the server

Filed under: Linux — admin @ 2:11 pm

Linux (Ubuntu, Debian)

Function Method
Copy your CA to dir /usr/local/share/ca-certificates/
Use command: sudo cp foo.crt /usr/local/share/ca-certificates/foo.crt
Update the CA store: sudo update-ca-certificates
Remove your CA.
Update the CA store: sudo update-ca-certificates –fresh


Linux (CentOs 6)

Function Method
Install the ca-certificates package: yum install ca-certificates
Enable the dynamic CA configuration feature: update-ca-trust force-enable
Add it as a new file to /etc/pki/ca-trust/source/anchors/: cp foo.crt /etc/pki/ca-trust/source/anchors/
Use command: update-ca-trust extract


Linux (Centos 5)

Append your trusted certificate to file /etc/pki/tls/certs/ca-bundle.crt
cat foo.crt >>/etc/pki/tls/certs/ca-bundle.crt

Rate this post

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress