Apache 2.4.9 fails after enabling ssl module and setting up ssl certificate

前端 未结 6 1125
悲哀的现实
悲哀的现实 2021-02-07 21:39

Apache throws the following errors after attempting to set up ssl certificates:

[ssl:emerg] [pid 30907] AH02572: Failed to configure at least one certificate and         


        
6条回答
  •  青春惊慌失措
    2021-02-07 22:07

    I also had the same problem. In my case I had also just included extra/httpd-ssl.conf as some of the others had mentioned. As said above, make sure you have entries in this file for

    SSLCertificateFile "/usr/local/etc/apache24/ssl.crt/mydomaincertificate.crt"

    SSLCertificateKeyFile "/usr/local/etc/apache24/ssl.key/myprivatekey.key"

    Even though the same entries are in extra/httpd-vhosts.conf for my main domain. I also had to make sure that in httpd.conf the "ServerName" entry matched a name in the certificate.

    While this is off no use to the OP, it may be of use to someone like me searching on this error after setting up SSL

提交回复
热议问题