Resolve LetsEncrypt - Server only speaks HTTP, not TLS Error

August 23, 2018
Tools & Techniques

You can setup SSL on your website using LetsEncrypt. I have encountered a few times when you want to add new domain to the LetsEncrypt, it throws the following error.

Waiting for verification...

Cleaning up challenges

Failed authorization procedure. xxxxxxxxx (tls-sni-01): urn:acme:error:malformed :: The request message was malformed :: Server only speaks HTTP, not TLS
IMPORTANT NOTES:-

The following errors were reported by the server:

Domain: XXXXXXX

Type:malformed

Detail: Server only speaks HTTP, not TLS


I spent hours resolving this issue figuring out whether there is a problem on my VPS or web server configuration or VirtualHost config.
To resolve the issue, add the following lines to your Apache virtual host conf file. On Apache2, it is available under /etc/apache2/sites-available/000-default-le-ssl.conf


SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pemSSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.keyInclude /etc/letsencrypt/options-ssl-apache.conf

Then addServerNameto your 000-default.conffile.


ServerName domain-name

Last thing, restart your apache2


sudo service apache2 restart

You should now be able to generate SSL LetsEncrypt certificate via


sudo letsencrypt -d domain-name

Happy Reading !!!

Share this post
Wordpress Security
Malware Analysis
Tools & Techniques
Pentests
PTaaS
Cyber Security
Technology
Subscribe to our newsletter

Join our newsletter today and enhance your knowledge with valuable insights. It's quick, easy, and free!

Be a Team Player
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Latest blogs

Latest updates in cybersecurity services

View All
Blacklock Blog Image
General
October 30, 2024
General
Wordpress CMS Security
June 9, 2016
Wordpress CMS Security