Install .cer certificates debian

1.9k views Asked by At

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

2

There are 2 answers

0
Nja On

.cer certificate is a Microsoft specific format. You can try to convert from .cer into .crt before installation following such a guide in the answer provided here: convert_cer_to_crt

0
pxi On

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.