I am trying to add SSL certs to my server but when I connect via a browser it throws an error (ERR_SSL_PROTOCOL_ERROR in Chrome).

This is confirmed using testssh (https://testssl.sh/)

 Testing protocols via sockets except NPN+ALPN 

 SSLv2      not offered (OK)
 SSLv3      not offered (OK)
 TLS 1      not offered
 TLS 1.1    not offered
 TLS 1.2    not offered
 TLS 1.3    not offered

On the server I can see that mod_ssl and openssl are installed:

sudo yum list installed *ssl*
Loaded plugins: priorities, update-motd, upgrade-helper
Installed Packages

This is in my .conf file for the virtual host (*:80 excluded):

<VirtualHost *:443>
  ServerName freedomtospeakup.com
  ServerAlias www.freedomtospeakup.com
  DocumentRoot "/var/www/f2su"
  DirectoryIndex index.php
  ErrorLog /var/log/httpd/f2su-error_log
  CustomLog /var/log/httpd/f2su-access_log combined

  SSLEngine on
  SSLProtocol all -SSLv2 -SSLv3
  SSLHonorCipherOrder on
  SSLCertificateFile /etc/letsencrypt/live/freedomtospeakup.com/cert.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/freedomtospeakup.com/privkey.pem
  SSLCertificateChainFile /etc/letsencrypt/live/freedomtospeakup.com/chain.pem

  <Directory "/var/www/f2su">
    AllowOverride All
    Allow from All

Cert seems to be ok, this is what I get when doing sudo ./certbot-auto certificates

  Certificate Name: freedomtospeakup.com
    Domains: freedomtospeakup.com www.freedomtospeakup.com
    Expiry Date: 2019-10-27 12:53:18+00:00 (VALID: 87 days)
    Certificate Path: /etc/letsencrypt/live/freedomtospeakup.com/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/freedomtospeakup.com/privkey.pem

This is what I have tried to date:

  • yum update (no packages to update)
  • date (correct)
  • rebooted server (no change)
  • checked firewall to ensure 443 is open (it is)
  • checked ssl.conf with another server where it is working (no differences)

Anything else that I can check?

  • What version of Apache httpd are you using and where did you get it? Jul 31 '19 at 16:13
  • httpd -v gives this > Server version: Apache/2.4.39 (Amazon) - it is exactly the same version and setup as on the server that is working.
    – williamsdb
    Jul 31 '19 at 20:23
  • Did you see all the port 443 access in Apache logfiles, and have you looked at them for any kind of other hint? Jul 31 '19 at 20:47
  • So is this Amazon Linux or Amazon Linux 2? Is it up to date? Jul 31 '19 at 22:03
  • @MichaelHampton /etc/system-release shows “Amazon Linux AMI release 2018.03” and yes it is up to date.
    – williamsdb
    Aug 1 '19 at 7:00

Your Answer

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

Browse other questions tagged or ask your own question.