I've installed ca-certificates package by sudo yum install ca-certificates
command, but I get an error when trying to run sudo update-ca-certificates
command, becuase it can not be found. What can be the problem? I tried looking for the package (in case if it was problem with PATH), but I didn't manage to find it on the machine.
Asked
Active
Viewed 7,332 times
2

micmus4
- 41
- 1
- 3
-
Whis linux distribution and version are you using? I faced a similar problem but solved it by finding the `update-ca-certificates` command with `sudo find /usr/ -name 'update-ca-certificates'` – jkr Jan 07 '23 at 16:10
1 Answers
1
Not all Linux versions use update-ca-certificates
-- I ran into a similar problem when trying to run update-ca-certificates
on Fedora, and found that the equivalent command on Fedora is called update-ca-trust
instead. Here's Fedora's documentation on how to add a new certificate:
you can simply copy the certificate file in the PEM or DER file format to the /etc/pki/ca-trust/source/anchors/ directory, followed by running the update-ca-trust command, for example:
cp ~/certificate-trust-examples/Cert-trust-test-ca.pem /etc/pki/ca-trust/source/anchors/ update-ca-trust
You can find out what specific distribution and version of Linux you're on by running cat /etc/os-release
. From there you can look up your OS' documentation on how to add a certificate authority on your OS.

Samira N
- 103
- 1
- 8