Invalid method in request \x16\x03\x01

So, ran into this one. Firefox is throwing this error, along with ‘SSL_ERROR_RX_RECORD_TOO_LONG’. Turns out, apache was serving plain HTTP on port 443, as it hadn’t been given a default SSL config.

Other causes may be: Corrupted SSL cert (rare). Mis-configured proxy. Not adding “SSLEngine On” after configuring an SSL cert. But mostly, you’re trying to talk HTTPS to an HTTP serving webserver.

`a2ensite default-ssl` (on debian) fixed it. Well, fixed in in that the default server now has a snake-oil self-signed cert, but, you know, fixed it. šŸ™‚

3 thoughts on “Invalid method in request \x16\x03\x01

  1. Simon

    Not adding “SSLEngine On”… That will teach me to copy config from the Apache Wiki without thinking…..

Leave a Reply

Your email address will not be published. Required fields are marked *

sprang-mildly