I bought a wildcard SSL cert from AlphaSSL but after installing it Firefox gives me ssl_error_rx_record_too_long error when visiting the site.

I'm tearing my hair out I just trying to get this working. Neither documentation, Google, nor the logs have been of much help:


^[Fri Nov 01 04:39:04 2013] [error] [client] Invalid method in request \x16\x03\x01
[Fri Nov 01 04:39:04 2013] [error] [client] Invalid method in request \x16\x03\x01

/var/log/apache2/ssl_access.log - - [01/Nov/2013:04:45:55 +0000] "\x16\x03" 501 311 "-" "-" - - [01/Nov/2013:04:46:03 +0000] "\x16\x03\x01" 501 312 "-" "-"

I restarted Apache, I disabled other sites to ensure that V-Host I am configuring is the one that is getting loaded, checked that mod_ssl is loaded, and ran the certs through OpenSSL. I've put a more complete terminal history in this gist.

Here is a compact version of my virtual host SSL settings. Note that I've tried, _default_:443, *, secure.speech.is:443 and others.

<IfModule mod_ssl.c>
      SSLEngine on
      SSLCertificateFile /etc/ssl/certs/speech.is.crt
      SSLCertificateKeyFile /etc/ssl/private/server.key
      SSLCertificateChainFile /etc/ssl/certs/AlphaSSLroot.crt


  • Are you behind a proxy? – Mitch Nov 1 '13 at 8:02
  • Well, the DNS is running through Cloudflare but I "paused" Cloudflare and it's on a virtual host so it shouldn't be behind a reverse proxy.... – Indolering Nov 1 '13 at 22:33

Not entirely sure what was wrong, I requested a new cert from CA using a non-encrypted private key. However, upon install, it still didn't work so I started with a fresh copy of the default-SSL site and it started working. It could be some weird interaction between Textmate and local file caches as (at one point) what I had open in Textmate and what was in my Nano shell differed but that could be bogus. I also altered the filenames to remove the .is.crt but that shouldn't matter at all.

TL;DR Restarted from scratch using SSL template, did everything in the shell using Nano to bypass file caches, and exercised the demons by hopping on one foot.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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