Apache SSL configuration - Invalid method in request \x16\x03\x01

43

Solution 1

I suspect my case is the same as user242156, and very possibly, the original poster. The issue was that my configuration files in sites-enabled/ were not in fact being read, because the distro's apache2.conf only included sites-enabled/*.conf and my files did not use that extension, as it is not required on, e.g., Ubuntu.

So the correct solution is rename ssltest.intra to ssltest.intra.conf, or if that's really unacceptable, modify apache2.conf to add the line IncludeOptional sites-enabled/*.

Solution 2

Had the same problem. In my situation the following solution worked (Apache 2.2/Debian Squeeze)

It seems like the ssl config was not loaded at the moment of listening. After many try and errors with the virtual host config, I added the config for SSL in apache2.conf instead of in the virtual host directive part. The ports are configured in ports.conf. After that my ssl worked properly. Looks like a sequence problem in loading the config parts.

Added the SSL part at the bottom of apache2.conf

SSLEngine on
SSLCertificateFile /etc/apache2/ssl/<server certificate filename>
SSLCertificateKeyFile /etc/apache2/ssl/<privatekey filename>
SSLCACertificateFile /etc/apache2/ssl/CaCert.crt

entries already present in ports.conf

# If you just change the port or add more ports here, you will likely also
 have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
Listen 80
<IfModule mod_ssl.c>
    # SSL name based virtual hosts are not yet supported, therefore no
    # NameVirtualHost statement here
Listen 443
</IfModule>
Share:
43

Related videos on Youtube

Mausam Anand
Author by

Mausam Anand

Updated on September 18, 2022

Comments

  • Mausam Anand
    Mausam Anand over 1 year

    I am getting this error when I try to click a date on calendar widget using selenium:

    [JavaScript Error: "b.elementFromPoint is not a function" {file: "file:///tmp/anonymous3738058585112632092webdriver-profile/extensions/[email protected]/components/synthetic-mouse.js" line: 11130}]'[JavaScript Error: "b.elementFromPoint is not a function" {file: "file:///tmp/anonymous373805858

    • murali selenium
      murali selenium over 5 years
      provide code used..possible html code or UI where you executed