Skip to content

Still Seeing "Your Connection is Not Private" Despite Let’s Encrypt Certificate on Bitnami WordPress (Lightsail)

0

Hi everyone,

I’m running a Bitnami WordPress stack on an Amazon Lightsail instance, and I’ve issued a valid Let’s Encrypt certificate for my domain saboricoa.com using the lego client.

I’ve already replaced the default Bitnami self-signed certificate with the Let’s Encrypt one using the following steps:

bash Copy Edit sudo cp /opt/bitnami/letsencrypt/certificates/saboricoa.com.crt /opt/bitnami/apache/conf/bitnami/certs/server.crt sudo cp /opt/bitnami/letsencrypt/certificates/saboricoa.com.key /opt/bitnami/apache/conf/bitnami/certs/server.key sudo /opt/bitnami/ctlscript.sh restart apache I also confirmed that my Apache config files reference the correct certificate paths. However, I’m still getting a "Your connection is not private / ERR_CERT_AUTHORITY_INVALID" error when visiting the site, and an openssl s_client check still shows the old self-signed cert (CN=testexp).

How can I get Apache to serve the correct Let’s Encrypt certificate?

I've verified:

The cert files are in place and have the correct permissions.

Apache restarts without errors.

DNS and IP address are correctly configured.

HTTPS is enabled in Lightsail.

Any suggestions would be greatly appreciated!

Thanks in advance.

1 Answer
0

It seems like you've taken many of the correct steps to set up your Let's Encrypt certificate on your Bitnami WordPress stack in Amazon Lightsail. However, there are a few additional things you can check and try to resolve the issue:

  1. Certificate file paths: Ensure that you're using the correct file paths for your Let's Encrypt certificates. On newer Bitnami installations, the correct paths might be:

    /opt/bitnami/apache2/conf/bitnami/certs/server.crt /opt/bitnami/apache2/conf/bitnami/certs/server.key

    Double-check these paths and update your copy commands if necessary.

  2. Full certificate chain: Make sure you're using the full certificate chain. Instead of copying just the .crt file, try using the fullchain.pem file:

    sudo cp /opt/bitnami/letsencrypt/certificates/saboricoa.com.fullchain.pem /opt/bitnami/apache2/conf/bitnami/certs/server.crt

  3. Apache configuration: Verify that your Apache configuration is correctly referencing the SSL certificate files. Check the following files for the correct paths:

    /opt/bitnami/apache2/conf/bitnami/bitnami-ssl.conf /opt/bitnami/apache2/conf/bitnami/bitnami.conf

  4. Permissions: Ensure that the Apache user has read permissions for the certificate files.

  5. Firewall settings: Check your Lightsail instance's firewall settings to make sure that port 443 (HTTPS) is open.

  6. Clear browser cache: Sometimes, browsers can cache SSL certificate information. Try clearing your browser cache or testing with a different browser or device.

  7. SSL configuration: Use an online SSL checker tool to verify your SSL configuration and identify any issues.

If you've verified all of these points and are still experiencing issues, you may want to check the Apache error logs for any specific error messages related to SSL:

sudo tail -f /opt/bitnami/apache2/logs/error_log

Remember to restart Apache after making any changes:

sudo /opt/bitnami/ctlscript.sh restart apache

If the issue persists, you might want to consider removing the existing SSL configuration and setting it up again from scratch using the Bitnami SSL configuration script:

sudo /opt/bitnami/bncert-tool

This tool can help you set up a new Let's Encrypt certificate and configure Apache correctly.
Sources
Secure your Lightsail WordPress instance with free Let's Encrypt SSL certificates - Amazon Lightsail
Secure your Lightsail LAMP instance with Let's Encrypt SSL certificates - Amazon Lightsail
Can't get HTTPS to work on Lightsail ubuntu instances - [..] the authenticity of the received data could not be verified | AWS re:Post

answered a year ago

EXPERT

reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.