Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install .cer certificates debian

I have to install a certificates on my server, but they only gave me a .cer file. I search on some forums, but I don't find anything to install it, just for .crt files...

How could I install it ?

Thanks a lot

like image 897
Nathan30 Avatar asked Nov 20 '25 05:11

Nathan30


1 Answers

You must first convert the cer file into a crt file.

openssl x509 -inform DER -in <fullfilepath>/certificate.cer -out certificate.crt

Then to install do the following:

sudo mkdir /usr/local/share/ca-certificates/my-custom-ca
sudo cp certificate.crt /usr/local/share/ca-certificates/my-custom-ca
sudo update-ca-certificates

You can find the full installation procedure here.

like image 98
pxi Avatar answered Nov 23 '25 18:11

pxi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!