0

I want to setup an SSL configuration on Apache. All I see in the web is that there should be some .key and .crt files. However, I have these files

# ls
fullchain.crt  private.pem
certificate.crt             order          public.pem

I tried the following configuration based on the explanation here, However, by restarting httpd I get an error which says private key not found.

SSLEngine on
SSLCertificateFile /home/snadmin/certificate.crt
SSLCertificateKeyFile /home/snadmin/public.pem
SSLCertificateChainFile /home/snadmin/fullchain.crt
<Directory "/var/www/html/">

How can I change that?

Tommiie
  • 5,627
  • 2
  • 12
  • 46
mahmood
  • 1,022
  • 7
  • 20
  • 33

1 Answers1

1

The SSLCertificateKeyFile must point to the private key, not the public one. See also the documentation.

Tommiie
  • 5,627
  • 2
  • 12
  • 46