SSL not working with Apache on Windows

Solution 1:

First, Apache will always use base64, file extensions are irrelevant (pem,crt,cer).

Second, you cannot issue a certificate for longer than the certificate authority.

10 years is a bit much, I wouldn't be surprised to see browsers begin to mark them as insecure.

If you still have the issued certs, you can validate them with openssl.

https://security.stackexchange.com/a/56699/84379

Solution 2:

Base 64 everywhere, please :-).

Your httpd.conf line

SSLCertificateKeyFile "E:/Apache24/conf/Certs/name.sub.domain.com.key"

is specifying an encrypted key file. Apache on Windows does not support suplying the decryption passphrase at runtime... See error log line:

[Wed Jan 11 14:35:15.024474 2017] [ssl:emerg] [pid 141796:tid 508] AH02577: Init: SSLPassPhraseDialog builtin is not supported on Win32 (key file E:/Apache24/conf/Certs/name.sub.domain.com.key)

You'll have to pre-decrypt your key file:

openssl rsa -in name.sub.domain.com.key -out name.sub.domain.com.decryped.key

providing the passphrase when asked. Correct httpd.conf and restart Apache.