Chromium Docs - Linux Cert Management (2024)

The easy way to manage certificates is navigate to chrome://settings/certificates. Then click on the “Manage Certificates” button. This will load a built-in interface for managing certificates.

On Linux, Chromium uses the NSS Shared DB. If the built-in manager does not work for you then you can configure certificates with the NSS command line tools.

Details

Get the tools

  • Debian/Ubuntu: sudo apt install libnss3-tools
  • Fedora: sudo dnf install nss-tools
  • Gentoo: su -c "echo 'dev-libs/nss utils' >> /etc/portage/package.use && emerge dev-libs/nss" (You need to launch all commands below with the nss prefix, e.g., nsscertutil.)
  • Opensuse: sudo zypper install mozilla-nss-tools

List all certificates

certutil -d sql:$HOME/.pki/nssdb -L

List details of a certificate

certutil -d sql:$HOME/.pki/nssdb -L -n <certificate nickname>

Add a certificate

certutil -d sql:$HOME/.pki/nssdb -A -t <TRUSTARGS> -n <certificate nickname> \-i <certificate filename>

The TRUSTARGS are three strings of zero or more alphabetic characters, separated by commas. They define how the certificate should be trusted for SSL, email, and object signing, and are explained in the certutil docs or Meena's blog post on trust flags.

For example, to trust a root CA certificate for issuing SSL server certificates, use

certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n <certificate nickname> \-i <certificate filename>

To import an intermediate CA certificate, use

certutil -d sql:$HOME/.pki/nssdb -A -t ",," -n <certificate nickname> \-i <certificate filename>

Note: to trust a self-signed server certificate, we should use

certutil -d sql:$HOME/.pki/nssdb -A -t "P,," -n <certificate nickname> \-i <certificate filename>

Add a personal certificate and private key for SSL client authentication

Use the command:

pk12util -d sql:$HOME/.pki/nssdb -i PKCS12_file.p12

to import a personal certificate and private key stored in a PKCS #12 file. The TRUSTARGS of the personal certificate will be set to “u,u,u”.

Delete a certificate

certutil -d sql:$HOME/.pki/nssdb -D -n <certificate nickname>
Chromium Docs - Linux Cert Management (2024)

FAQs

Where are Chrome certificates stored Linux? ›

Google Chrome uses the built in certificate store of the operating system it is installed in. On Linux, it uses the NSS Shared DB that is located in the hidden $HOME/. pki folder. In order to manipulate the certificates in this database, you must use the command line tool certutil and pk12util.

How do I import certificates into Chrome Linux? ›

In Chrome, open the menu in the top right corner and click Settings. In the Chrome settings, select Privacy and security > Manage certificates. In the Manage certificates dialog, go to the Authorities tab and click the Import button. Click Browse and select the cacert.

How do I add a certificate to chromium CA? ›

If you decide to add a certificate to Google Chrome or Chromium in the GUI, open the settings from the main menu. After that, you need to open Privacy and Security -> Security -> Configure certificates. Then go to the "Certificate Authority".

How to check certificate authority in Linux? ›

Using /etc/ssl/certs/ca-certificates. crt. This command enumerates the CA certificates in /etc/ssl/certs/ca-certificates. crt with awk, running openssl for each via the preset decoder [-v]ariable with {print | decoder}.

Where are certs located on Linux? ›

The default location to install certificates is /etc/ssl/certs . This enables multiple services to use the same certificate without overly complicated file permissions. For applications that can be configured to use a CA certificate, you should also copy the /etc/ssl/certs/cacert.

Where can I find manage certificates in Chrome? ›

On the left, click Privacy and security. Click Security. Scroll to Advanced. Click Manage certificates.

How do I get certificates in Linux? ›

Detailed procedure
  1. Install OpenSSL. ...
  2. Creating the CA. ...
  3. generate the key for the server certificate. ...
  4. Certificate Signing Request erzeugen. ...
  5. Customise the OpenSSL configuration. ...
  6. Sign the Server Certificate. ...
  7. Install the certificate.
Sep 3, 2020

How to add CA certificates in Linux? ›

To add a CA certificate, we need the certificate file. PEM is one common format in which we receive a certificate file. This has the '—-BEGIN CERTIFICATE—-' tag in it. First, we need to copy the file to the trust store, and then, we have to update the trust store.

Does Chrome have its own certificate store? ›

However, recently Chrome has moved to use its own Certificate store. Initially we were able to set ChromeRootStoreEnabled to false in the registry which allowed our Certificates to still be recognized as secure.

How to check SSL certificate in Chrome browser? ›

Here's how to do it.
  1. Open Chrome Developer Tools. The quickest way there is with a keyboard shortcut: OS. Keyboard. Shortcuts. Windows and Linux. Ctrl + Shift + i. F12. Mac. ⌘ + Option + i. ...
  2. Select the Security tab. If it is not shown, select the >> as shown below.
  3. Select View Certificate.

How do I see trusted certificate authorities in Chrome? ›

Chromebook and Windows OS verification

Navigate to chrome://settings and scroll down to 'Advanced'. Under "Privacy and Security," click "Manage Certificates." On the popup that was launched, select "Trusted Root Certification Authorities'. The certificate will be displayed there.

How do I view certificate contents in Linux? ›

Certificate files in Linux are located by default in the /etc/pki/tls/certs folder or sometimes within an application-specific folder such as /etc/httpd for Apache. These generally use . pem or . crt extensions and will likely be named yourdomain.

How do I know if ssl certificate is installed Linux? ›

In the command line, enter openssl s_client -connect <hostname> : <port> . This opens an SSL connection to the specified hostname and port and prints the SSL certificate. Check the availability of the domain from the connection results. The following table includes some commonly used s_client commands.

What is the directory for certificates in Linux? ›

SSL certificates are typically stored in the file system of a Linux server in the /etc/ssl/ directory. More specifically, they are usually located in the /etc/ssl/certs/ directory for the certificate itself and the /etc/ssl/private/ directory for the corresponding private key.

Where does Chrome store files on Linux? ›

Linux. The default location is in ~/. config : [Chrome Stable] ~/.

Where is Google Chrome cache stored in Linux? ›

Default Location

Google Chrome: $XDG_CACHE_HOME/google-chrome, which defaults to ~/. cache/google-chrome. Chromium: $XDG_CACHE_HOME/chromium, which defaults to ~/. cache/chromium.

Where are PEM files stored in Linux? ›

On Linux systems, the . pem files are located in these directories: For Let's Encrypt extension - /usr/local/psa/var/modules/letsencrypt/etc/archive/example.com/ . For SSL It!

How do I export a certificate from Chrome Linux? ›

Google Chrome
  1. In the Developer tools, click the Security tab.
  2. In the Security tab, click the View Certificate button.
  3. In the Certificate window, click the Details tab.
  4. Click the Copy to File... ...
  5. Click the Next button in the wizard.
  6. Select the Base-64 encoded X. ...
  7. Chose a path and filename to export the file and click Next.

Top Articles
Latest Posts
Article information

Author: Dean Jakubowski Ret

Last Updated:

Views: 6457

Rating: 5 / 5 (70 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Dean Jakubowski Ret

Birthday: 1996-05-10

Address: Apt. 425 4346 Santiago Islands, Shariside, AK 38830-1874

Phone: +96313309894162

Job: Legacy Sales Designer

Hobby: Baseball, Wood carving, Candle making, Jigsaw puzzles, Lacemaking, Parkour, Drawing

Introduction: My name is Dean Jakubowski Ret, I am a enthusiastic, friendly, homely, handsome, zealous, brainy, elegant person who loves writing and wants to share my knowledge and understanding with you.