2

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

Nathan30
  • 689
  • 2
  • 8
  • 29
  • Did you found the solution for it? I also have the .crt file but key file is missing and have to enable SSL on AWS server. – Hassan Raza Jun 21 '17 at 11:02

2 Answers2

1

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.

pxi
  • 51
  • 5
0

.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

Nja
  • 439
  • 6
  • 17