UPDATE-CA-CERTIFICATES(8)

๐Ÿ“ฆ
version 20260816ubuntu0.26.10.1 ยท 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

๐ŸŽ€ UPDATE-CA-CERTIFICATES(8) ๐ŸŽ€

okay so this is the system manager's manual page for update-ca-certificates ๐Ÿ’… bestie, let's get into it ๐Ÿซถ

โœจ NAME โœจ

update-ca-certificates is the thing that updates /etc/ssl/certs and ca-certificates.crt ๐Ÿ”

๐Ÿงš SYNOPSIS ๐Ÿงš

update-ca-certificates [options]

๐Ÿ’– DESCRIPTION ๐Ÿ’–

This manual page documents briefly the update-ca-certificates command. Quick and easy ๐ŸŒธ

update-ca-certificates is a program that manages the collection of TLS certificates for the local machine and generates ca-certificates.crt ๐Ÿ” ca-certificates.crt is a single-file of concatenated certificates. The collection of individual certificates is stored at /etc/ssl/certs. It's giving organized โœจ

The program reads the configuration file /etc/ca-certificates.conf. Each line gives a pathname of a CA certificate under /usr/share/ca-certificates that should be trusted. Lines that begin with "#" are comment lines and thus ignored, so you can leave yourself little notes ๐Ÿ™ˆ Lines that begin with "!" are deselected, which deactivates the CA certificate in question. Bye bye, cert ๐Ÿ’€

Certificates must be in PEM format and have a .crt extension in order to be included by update-ca-certificates. Furthermore, all certificates with a .crt extension found below /usr/local/share/ca-certificates are also included and implicitly trusted. Main character energy ๐Ÿ‘‘

To add one or more certificates to the machine, copy the certificates in PEM format with the *.crt extension to /usr/local/share/ca-certificates. There should be one certificate per file, and not multiple certificates in a single file. Then run update-ca-certificates to merge the new certificates into the existing machine store at /etc/ssl/certs. Periodt ๐Ÿ’…

Before terminating, update-ca-certificates invokes run-parts on /etc/ca-certificates/update.d and calls each hook with a list of certificates: those added are prefixed with a +, those removed are prefixed with a -. So you always know what changed ๐Ÿ‘€โœจ

๐ŸŒˆ OPTIONS ๐ŸŒˆ

A summary of options is included below. Here's the tea ๐Ÿ“

  • -h, --help โ€” Show summary of options. Your go-to when you forget everything ๐Ÿซ 
  • -v, --verbose โ€” Be verbose. Output openssl rehash. Chatty mode, activated ๐Ÿ—ฃ๏ธ
  • -f, --fresh โ€” Fresh updates. Remove symlinks in /etc/ssl/certs directory. Clean slate, bestie ๐Ÿงผ
  • --certsconf โ€” Change the configuration file. By default, the file /etc/ca-certificates.conf is used. Swap in your own config if you're feeling extra ๐Ÿ’…
  • --certsdir โ€” Change the certificate directory. By default, the directory /usr/share/ca-certificates is used. ๐Ÿ“‚
  • --localcertsdir โ€” Change the local certificate directory. By default, the directory /usr/local/share/ca-certificates is used. Your own certs, your own rules ๐Ÿฆ‹
  • --etccertsdir โ€” Change the /etc certificate directory. By default, the directory /etc/ssl/certs is used. ๐ŸŒธ

๐Ÿ“ FILES ๐Ÿ“

  • /etc/ca-certificates.conf โ€” A configuration file. The boss of the whole operation ๐Ÿ‘‘
  • /etc/ssl/certs/ca-certificates.crt โ€” A single-file version of CA certificates. This holds all CA certificates that were activated in /etc/ca-certificates.conf. The big bundle ๐ŸŽ€
  • /usr/share/ca-certificates โ€” Directory of CA certificates provided by the distribution. Distro-approved vibes โœจ
  • /usr/local/share/ca-certificates โ€” Directory of local CA certificates, with .crt extension, provided by the user. Your personal collection ๐Ÿ’œ

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

  • openssl(1) โ€” go check it out, it's iconic ๐Ÿ”ฅ

๐Ÿซถ AUTHOR ๐Ÿซถ

This manual page was written by Fumitoshi UKAI <ukai@debian.or.jp>, for the Debian project (but may be used by others). Huge shoutout to them ๐Ÿ’–


Byeee, bestie! ๐ŸŒˆ This page is from the System Manager's Manual, manual name UPDATE-CA-CERTIFICATES(8), dated 20 April 2003. Stay secure and keep your certs fresh ๐Ÿ’…โœจ๐Ÿงš