Adding Trusted Certificates to Ubuntu: A Step-by-Step Guide

watch 2m, 3s
views 2

12:16, 08.08.2025

Article Content
arrow

  • Step-by-Step Guide: Adding a Certificate to Ubuntu Trusted Authorities
  • 1. Locate or Obtain the Certificate
  • 2. Move the Certificate to the Trusted Directory
  • 3. Update the Trusted Certificates
  • 4. Verify the Certificate Installation
  • How to Add a Certificate in Firefox
  • 1. Open Firefox Certificate Manager
  • 2. Import the Certificate
  • 3. Test the Certificate
  • Final Thoughts

Managing trusted certificates is a critical part of ensuring secure communication between your devices and servers.

In this guide, we’ll walk you through the process of adding certificates to the trusted authorities in Ubuntu, as well as incorporating them into Firefox for seamless browsing.

Step-by-Step Guide: Adding a Certificate to Ubuntu Trusted Authorities

Adding a certificate to Ubuntu’s trusted authorities ensures that applications running on the system can validate the authenticity of the certificate. Follow these steps:

1. Locate or Obtain the Certificate

Ensure you have the desired certificate in .crt  format. If you’re obtaining it from a website, use the following command to download it:

openssl s_client -showcerts -connect example.com:443 < /dev/null | openssl x509 -outform PEM > example.crt

Replace example.com with your desired domain.

Alternatively, you can install the certificate package with apt command, like this:

sudo apt install ca-certificates

2. Move the Certificate to the Trusted Directory

Copy the .crt file to the system’s trusted certificate directory:

sudo cp example.crt /usr/local/share/ca-certificates/

3. Update the Trusted Certificates

Run the following command to add the certificate to the trusted authorities:

sudo update-ca-certificates

You should see a message indicating the number of certificates added.

4. Verify the Certificate Installation

To verify that the certificate is trusted, you can check its presence in the system’s certificate store:

ls /etc/ssl/certs | grep example

How to Add a Certificate in Firefox

If you’re using Firefox, certificates must be manually imported into its trust store. Here’s how to do it:

1. Open Firefox Certificate Manager

  1. Launch Firefox.
  2. Navigate to Settings > Privacy & Security.
  3. Scroll down to the "Certificates" section and click on View Certificates.

2. Import the Certificate

  1. In the Certificate Manager, go to the "Authorities" tab.
  2. ClickImport and select the .crt file.
  3. When prompted, check the appropriate trust options, such as "Trust this CA to identify websites."
  4. Click OK to save the changes.

3. Test the Certificate

Visit a website that uses the imported certificate to ensure no warnings appear. If everything is set up correctly, Firefox will recognize the certificate as trusted.

Final Thoughts

Adding trusted certificates to Ubuntu and Firefox is a straightforward process that enhances the security and reliability of your system. By ensuring that your certificates are properly integrated, you minimize the risk of security warnings and ensure encrypted connections function as intended. For system administrators, this is a crucial part of maintaining a secure infrastructure. Regularly updating and managing your trusted certificates will keep your workflows and communications secure.

Share

Was this article helpful to you?

2 users find this article useful

VPS popular offers

-13.1%

CPU
CPU
2 Xeon Cores
RAM
RAM
512 MB
Space
Space
10 GB SSD
Bandwidth
Bandwidth
300 GB
KVM-SSD 512 HK Linux

7 /mo

/mo

Billed annually

-15.6%

CPU
CPU
3 Xeon Cores
RAM
RAM
1 GB
Space
Space
20 GB SSD
Bandwidth
Bandwidth
30 Mbps
DDoS Protected SSD-KVM 1024 Linux

38 /mo

/mo

Billed annually

-22.2%

CPU
CPU
4 Xeon Cores
RAM
RAM
4 GB
Space
Space
50 GB SSD
Bandwidth
Bandwidth
300 GB
KVM-SSD 4096 HK Linux

33 /mo

/mo

Billed annually

-20.5%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
8 TB
KVM-SSD 8192 Metered Linux

57 /mo

/mo

Billed annually

-15%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
80 Mbps
DDoS Protected SSD-wKVM 8192 Windows

101 /mo

/mo

Billed annually

-8.1%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
200 GB HDD
Bandwidth
Bandwidth
Unlimited
wKVM-HDD 8192 Windows

31.25 /mo

/mo

Billed annually

-26.7%

CPU
CPU
3 Xeon Cores
RAM
RAM
1 GB
Space
Space
20 GB SSD
Bandwidth
Bandwidth
1 TB
KVM-SSD 1024 Metered Linux

10 /mo

/mo

Billed annually

-10%

CPU
CPU
6 Xeon Cores
RAM
RAM
16 GB
Space
Space
400 GB HDD
Bandwidth
Bandwidth
300 Gb
KVM-HDD HK 16384 Linux

39.55 /mo

/mo

Billed annually

-10%

CPU
CPU
6 Xeon Cores
RAM
RAM
16 GB
Space
Space
150 GB SSD
Bandwidth
Bandwidth
Unlimited
10Ge-KVM-SSD 16384 Linux

231 /mo

/mo

Billed annually

-10%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
Unlimited
KVM-SSD 8192 Linux

25.85 /mo

/mo

Billed annually

Other articles on this topic

cookie

Accept cookies & privacy policy?

We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the HostZealot website.