My website stopped working and now gives the scary warning (Warning: Potential Security Risk Ahead)
I have updated certbot and tried to install the ubuntu authenticator per these instructions ubuntu - How to update Certbot version? - Stack Overflow
I have updated everything that I can think of.
I have an ssl-renew script and manually ran that.
I am still getting the same error.
#!/bin/bash
COMPOSE="/usr/bin/docker-compose --no-ansi"
DOCKER="/usr/bin/docker"
cd /home/weilidma/dsp-ui
$COMPOSE run nginx renew && $COMPOSE kill -s SIGHUP nginx
$DOCKER system prune -af
Your site is currently serving a Let's Encrypt certificate that has expired on Oct 31.
You have issued a new certificate very recently, but your webserver is not serving it. This is an indication that the certificate was not installed correctly. Sometimes all that's needed is a reload of the webserver in question. If that doesn't help, we need to see your nginx configuration (which can usually be done via nginx -T).
So I'm not sure how your renewal script is supposed to work in the first place. If you could show us some details about it we might learn more about what went wrong.
I guess (again, hard to tell without crystal ball) that your renew script did renew the certificate as expected (though not automatic), but did not reload the webserver, which is necessary to install the new certificate.
#!/bin/bash
COMPOSE="/usr/bin/docker-compose --no-ansi"
DOCKER="/usr/bin/docker"
cd /home/weilidma/dsp-ui
$COMPOSE run nginx renew && $COMPOSE kill -s SIGHUP nginx
$DOCKER system prune -af
Now that you mention it, I see no reference to Certbot at all, so I am not certain how it was working... yet it was. Can you tell me how to make this work or point me to instructions?
d'oh..... it was referring to the wrong container (nginx as versus certbot). I am STILL not certain how it was working before, but I am satisfied. Thank you for your help!