SSL Errors With Apache
If you receive one of the following errors, it’s very possible the Apache process is listening on port 443 but is not responding using the SSL protocol routines. In brief it is a protocol mismatch. Here’s a list of possible errors:
Firefox error: SSL received a record that exceeded the maximum permissible length
Apache error log: \x80d\x01\x03\x01
Curl CLI error: curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
The fastest way to recover from such error is to restore the most recent Apache configuration file from backup. If you do not have a backup copy, you will need to look at your virtualhost section associated with the domain and SSL port combination. Chances are it does not exist. In cPanel, this issue can be corrected with a simple run of the script rebuildhttpdconf as such:
/scripts/rebuildhttpdconf
After making the necessary changes, and whether you are running cPanel or not, you will need to stop Apache then restart it.
That’s all folks!