I wonder what happen “when my Laravel Forge subscription expired”? apparently:
- Site is still on
- Lose access to Forge (of course)
- BUT! https certificate expired
Auto renew is stopped
Auto renewal for the certification is stopped as the Laravel forge service stopped.
How to renew / recreate your SSL certification
There’s no magic behind it. We just need to create new Let’s encrypt certification like when we spin up own server and install it there. Here are the steps:
SSH to your server
you must remember (save!) your forge password.
use forge user. If you don’t save your password, ask for reset password from your server provider
sudo apt install certbot python3-certbot-nginx
Install SSL certificate
Depend on your need, if you want www domain as well
sudo certbot --nginx -d example.com -d www.example.com
sudo certbot --nginx -d example.com
Verify auto renewal
sudo systemctl status certbot.timer
sudo certbot renew --dry-run
Detail source from: How To Secure Nginx with Let’s Encrypt on Ubuntu 20.04 , so you might want to adjust based on your ubuntu version.
Hope your site is back again!