I'm trying to set up Apache 2.4.25 with a Let's Encrypt certificate on Raspian Stretch. However, I can't get SSL working. Apache keeps responding with a 400 using HTTP instead of doing the SSL handshake. What's most confusing is that the log produceslines like:
hostname:80 148.72.168.62 - - [31/Jan/2018:18:23:13 +0100] "\x16\x03\x01" 400 0 "-" "-"to 443, but it still logs port 80 and responds with 400. I tried other ports as well. I verified the requests were coming in through the right port using "sudo nc -l <port>" while Apache was stopped.
i.e. it says the request was coming in through port 80, even though it didn't. I changed my configuration to include 'Listen 443 https' and disabled the default listener on port 80. I made sure no process is listening on 80 and Apache is indeed bound
SSLEngine is on, mod_ssl is enabled, and the paths for the certificate have been set up by certbot.
Any help would be appreciated.
I'm trying to set up Apache 2.4.25 with a Let's Encrypt certificate on Raspian Stretch. However, I can't get SSL working. Apache keeps responding with a 400 using HTTP instead of doing the SSL handshake. What's most confusing is that the log produceslines like:
hostname:80 148.72.168.62 - - [31/Jan/2018:18:23:13 +0100] "\x16\x03\x01" 400 0 "-" "-"to 443, but it still logs port 80 and responds with 400. I tried other ports as well. I verified the requests were coming in through the right port using "sudo nc -l <port>" while Apache was stopped.
i.e. it says the request was coming in through port 80, even though it didn't. I changed my configuration to include 'Listen 443 https' and disabled the default listener on port 80. I made sure no process is listening on 80 and Apache is indeed bound
SSLEngine is on, mod_ssl is enabled, and the paths for the certificate have been set up by certbot.
Any help would be appreciated.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 47:40:26 |
Calls: | 6,648 |
Files: | 12,198 |
Messages: | 5,329,925 |