After setting up SSL for Nginx and making a request, I receive a garbled response with the cryptic message client sent invalid method while reading client request line.
I generated the certificate using Let's Encrypt in an Alpine Docker container (for context, not relevant to the error).
Here is a screenshot:
Simplified Nginx virtual host configuration follows:
server {
listen 443;
ssl_certificate /vsdroot/letsencrypt/live/yourdomain.com/fullchain.pem;
ssl_certificate_key /vsdroot/letsencrypt/live/yourdomain.com/privkey.pem;
ssl_dhparam /vsdroot/letsencrypt/ssl-dhparams.pem;
include /vsdroot/letsencrypt/options-ssl-nginx.conf;
root /vsdroot;
location / {
index index.html;
}
Security Note: My SSL key is located inside the Nginx docroot for local testing only, do not do this on production, or anywhere for that matter!

