SSL Connection Error
Posted
by
toffee.beanns
on Server Fault
See other posts from Server Fault
or by toffee.beanns
Published on 2014-05-29T17:53:53Z
Indexed on
2014/05/29
21:34 UTC
Read the original article
Hit count: 279
I have purchased a comodo ssl cert and have submitted the Certificate Signing Request (CSR) generated by my server to the ssl management site.
With the 3 files it returned me with,
- AddTrustExternalCARoot.crt
- PositiveSSLCA2.crt
- www_mydomainname_com.crt
I have uploaded them to my /etc/ssl/ssl-certs folder and have updated my virtual host in my sites-available and restarted accordingly.
NameVirtualHost 107.167.120.195:80 #sample ip address
NameVirtualHost 107.167.120.195:443 #sample ip address
......... #normal http virtual host (working well)
<VirtualHost 107.167.120.195:443>
ServerAdmin [email protected]
ServerName mydomainname.com
ServerAlias www.mydomainname.com
DocumentRoot /var/www/mydomainname
SSLEngine on
SSLCertificateFile /etc/ssl/ssl-certs/www_mydomainname.com.crt
SSLCertificateKeyFile /etc/ssl/ssl-certs/server.key
SSLCertificateChainFile /etc/ssl/ssl-certs/PositiveSSLCA2.crt
</VirtualHost>
I have also enabled ran 'a2enmod ssl' and it's enabled.
This is the error I get when I access the webpage https in chrome:
SSL connection error
Error code: ERR_SSL_PROTOCOL_ERROR
Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have.
I have also checked out my apache log files and there seems to be an error saying that the Common Name (CN) is not the same as the server.
RSA server certificate CommonName (CN) `www.mydomainname.com' does NOT match server name!?
and
Invalid method in request \x16\x03\x01
What should I do?
© Server Fault or respective owner