webzod
account

Fix the certificate that browsers reject on Apache

tls.cert.invalid · effort: about an hour

Why it matters

The certificate or its chain fails verification for a reason other than expiry, a wrong name or a missing authority, so browsers refuse it. Without a certificate at all, HTTPS cannot work.

The fix

  1. Check that a VirtualHost on port 443 has SSLEngine on and a matching certificate and key. The mod_ssl module must be enabled.
  2. Test the configuration and reload Apache.
/etc/apache2/sites-available/site-ssl.conf
<VirtualHost *:443>
    ServerName example.com
    SSLEngine on
    SSLCertificateFile    /etc/letsencrypt/live/example.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
</VirtualHost>

The examples use example.com. Replace it with your own domain.

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.