I am trying to get Let’s Encrypt working on my website hosted on EC2 using the LAMP stack (Ubuntu 16.04 server). Here is my config file in /etc/apache2/sites-available:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName bancsdegolf.com
ServerAlias www.bancsdegolf.com
<Directory /var/www/bancsdegolf.com/>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride FileInfo
Order allow,deny
allow from all
</Directory>
DocumentRoot /var/www/bancsdegolf.com/
ErrorLog /var/www/apache2/.log/error.log
CustomLog /var/www/apache2/.log/access.log combined
RewriteEngine on
# Some rewrite rules in this file were disabled on your HTTPS site,
# because they have the potential to create redirection loops.
# RewriteCond %{SERVER_NAME} =bancsdegolf.com
# RewriteRule ^ https://www.%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/bancsdegolf.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/bancsdegolf.com/privkey.pem
</VirtualHost>
</IfModule>
My domain, obviously: bancsdegolf.com I have added my config with a2ensite. “sudo apachectl -t” return “Syntax OK”, “sudo service apache2 restart” returns no errors. The HTTP version works fine.
In short, everything looks like it should be working, but it is not. On top of that, all the other certificates on my host (using letsencrypt as well) are also not working.
I have tried several things I found online, including changing the permissions on /etc/letsencrypt/live and archive.
Perhaps the error message in FireFox is pertinent? "An error occurred during a connection to www.bancsdegolf.com. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG "