0

I am sure that this error can occur when apache ssl virtualhost directive doesn't contain configuration on SSLCertificateFile. However, in my situation I am pretty sure I have it configured correctly as shown in my httpd-ssl.conf below:

LoadModule ssl_module modules/mod_ssl.so

Listen 443

<VirtualHost *:443>

DocumentRoot "/home/web/htdocs"
ServerName mydomain.com
ServerAdmin you@example.com
ErrorLog "/usr/local/apache2/logs/error_log"
TransferLog "/usr/local/apache2/logs/access_log"

SSLEngine on

SSLCertificateFile "/etc/pki/tls/certs/my.crt"
SSLCertificateKeyFile "/etc/pki/tls/private/my.key"
SSLCertificateChainFile "/etc/pki/tls/certs/intermediate.pem"
SSLCACertificateFile "/etc/pki/tls/certs/ca.pem"

</VirtualHost>

The certificate is properly configured with 644 permission while the private key with 600.

Did I miss anything?

  • Which error are we talking about? – ptman Sep 15 '17 at 15:10
  • Apache won't start after configuring https with error message: "Server should be SSL-aware but has no certificate configured" – user1677104 Sep 15 '17 at 20:13
  • @user1677104 there is not more error messages? – pbacterio Sep 25 '17 at 11:23
0

Try changing "Listen 443" to "Listen 443 http". It should solve your issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.