debian ubuntu ca - ghdrako/doc_snipets GitHub Wiki
update-ca-certificates - certificate management - gathers certificates from different folder locations and combines them into a single file.
We can find the combined file stored at /etc/ssl/certs/ca-certificates.crt
.
The update-ca-certificates command searches for CA certificates in two locations:
/usr/share/ca-certificates
/usr/local/share/ca-certificates
To add a certificate, we can copy the CA certificates to one of these locations with the cp command, and run the update-ca-certificates
command:
$ sudo cp cacert.crt /usr/local/share/ca-certificates/
$ sudo update-ca-certificates