Monday, April 29, 2024
480
rated 0 times [  480] [ 0]  / answers: 1 / hits: 863798  / 2 Years ago, fri, january 14, 2022, 3:36:42

Can anyone point me to a good tutorial on installing a root certificate on Ubuntu?



I've been provided with a .crt file. I gather that need to create a directory at /usr/share/ca-certificates/newdomain.org and place the .crt in that directory. Beyond that I'm not sure how to proceed.


More From » certificates

 Answers
3

Given a CA certificate file foo.crt, follow these steps to install it on Ubuntu:



  1. Create a directory for extra CA certificates in /usr/local/share/ca-certificates:


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


  2. Copy the CA .crt file to this directory:


    sudo cp foo.crt /usr/local/share/ca-certificates/extra/foo.crt


  3. Let Ubuntu add the .crt file's path relative to /usr/local/share/ca-certificates to /etc/ca-certificates.conf:


    sudo dpkg-reconfigure ca-certificates

    To do this non-interactively, run:


    sudo update-ca-certificates



In case of a .pem file on Ubuntu, it must first be converted to a .crt file:


openssl x509 -in foo.pem -inform PEM -out foo.crt

Or a .cer file can be converted to a .crt file:


openssl x509 -inform DER -in foo.cer -out foo.crt

[#42477] Friday, January 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sipwing

Total Points: 245
Total Questions: 100
Total Answers: 118

Location: Aland Islands
Member since Thu, Oct 22, 2020
4 Years ago
sipwing questions
Sun, May 29, 22, 22:00, 2 Years ago
Fri, Jun 24, 22, 08:46, 2 Years ago
Fri, Dec 23, 22, 00:04, 1 Year ago
;