Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

N00b question, sorry:

I installed Apache 2.2.17 + OpenSSL on a Windows box, and now I'm trying to configure mod_ssl, but I can't. What I did was the following:

  1. Using OpenSSL, create a certificate (C:\my\cert) and a key (C:\my\key).

  2. Uncomment the line LoadModule ssl_module modules/ in the httpd.config file.

  3. Update extra\httpd.ssl.conf:

    <VirtualHost _default_:443>
    DocumentRoot "C:/my/document/root"
    # ...
    SSLEngine on
    # ...
    SSLCertificateFile "C:/my/cert"
    SSLCertificateKeyFile "C:/my/key"
    # ...
    <Location />
    SSLOptions +StrictRequire

And, at this point, I am stuck. Please someone not only tell me what I have to do, but explain me why I have to do it.

The following line gets added to the errors.log file whenever I try to enter https://mysite/:

[Mon Mar 21 16:49:57 2011] [error] [client] Invalid method in request \x16\x03
share|improve this question
I assume Apache fails to start. Can we have the error message from your error log? – Bittrance Mar 21 '11 at 21:43
@Bittrance: Apache does not fail to start, but https://mysite/ fails to load. – pyon Mar 21 '11 at 21:46
up vote 1 down vote accepted

What you're missing is

SSLEngine on

Inside that <VirtualHost> which is what tells Apache that it needs to process incoming connections as SSL connections. Without it, Apache assumes that incoming connections are unencrypted and it tries to parse the SSL protocol as HTTP and gets gibberish.

share|improve this answer
I already set SSLEngine on, SSLOptions +StrictRequire, and SSLRequireSSL, yet still nothing happens. – pyon Mar 21 '11 at 21:58
My mistake was forgetting to include httpd-ssl.conf in httpd.conf. Sorry! – pyon Mar 21 '11 at 22:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.