SSL Certificate .PEM format problem !

Hi Guys,

Im using ubuntu 20 and apache 2.4, i need to install ssl certifcate. I got 2 file in .pem format.

gazda.or.pem - certificate DigiCert-TLS-RSA-SHA256-2020-CA1.pem - i think this is key.

What is the correct procedure for installing certificates? The first time I install pem files.

I found a /etc/apache2/sites-available default-ssl.conf file where i can add certificate file but regulary its was in .crt format and .key.

Somebody can help me?

Old files configuration.

SSLCertificateFile /etc/apache2/ssl/orange.cer SSLCertificateKeyFile /etc/apache2/ssl/orange.key SSLCertificateChainFile /etc/apache2/ssl/DigiCertGlobalCAG2.crt

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @gazdamoldova,

You need to add the files on your system, where ever you want but I’ll suggest using the /etc/apache2/ssl/ directory.

In there add the files. I don’t think the extension matters, what it matters is typing the proper file to the proper option in :


You are right, they are a strange format but by opening them, you should be able to see what’s what. Add them to the above options accordingly and restart Apache. You’ll see if something went wrong, if it did, it’s just trial and error afterwards.