Table of Contents

Customer Portal - Manual Certificate Renewal

Mitchell Paul-Soumis Updated by Mitchell Paul-Soumis

Read Time: 1 min

In some rare cases, it may be necessary to manually initiate a certificate renewal for your Sonar Customer Portal. By following the below instructions, you'll renew the certificate issued against the domain, and force renewals in the future.

First make sure that you're within the folder on your server named customer_portal. Then run the following commands:

sudo docker-compose run --rm \
--entrypoint "\
certbot certonly --webroot \
-w /var/www/certbot \
--force-renewal" certbot
sudo docker-compose exec app sv restart nginx
sudo docker-compose down
sudo docker-compose up -d

If you would like to do an install on fewer lines instead, you could use the following:

cd customer_portal
sudo docker-compose run --rm --entrypoint "certbot certonly --webroot -w /var/www/certbot --force-renewal" certbot
sudo docker-compose exec app sv restart nginx
sudo docker-compose down
sudo docker-compose up -d

How did we do?

Contact