I created a self-signed server certificate, a server private key, and my own certificate authority certificate using the commands below.
openssl genrsa -out ca.key 2048 openssl req -config openssl.cnf -new -x509 -days 365 -key ca.key -out ca.crt openssl genrsa -out server.key 2048 openssl req -config openssl.cnf -new -key server.key -out server.csr openssl x509 -req -days 365 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt
Then I added them to httpd-ssl.conf using below.
SSLCertificateFile "C:/Apache2/conf/server.crt" SSLCertificateKeyFile "C:/Apache2/conf/server.key" SSLCertificateChainFile "C:/Apache2/conf/ca.crt"
However, when visiting https: // localhost, I get: -
Secure connection failed. Error connecting to local. The peer certificate has an invalid signature. (Error code: sec_error_bad_signature) The page you are trying to view cannot be because the authenticity of the received data cannot be verified. * Please contact website owners to inform them of this problem.
Any ideas anybody?
thanks
A normal untrusted localhost error uses an invalid security certificate. The certificate is not trusted because it is signed.
CA certificate error An error occurred while connecting to localhost. The ad hoc certificate has an invalid signature.
source share