- Joined
- Mar 13, 2020
- Messages
- 8
- Reaction score
- 4
Hi Folks,
This seems to come up a lot and found myself needing to do the same. We run V16 on Debian 9 ISO and it turns out it's super easy:
This will reload nginx after a successful certificate renewal.
HTH, Richard.
This seems to come up a lot and found myself needing to do the same. We run V16 on Debian 9 ISO and it turns out it's super easy:
- SSH to your PBX
- Install Certbot:
Code:
apt-get install certbot - If your PBX lives behind a firewall make sure you forward port 80
- Manually request your SSL certificate without an installer:
Code:
certbot certonly --standalone -d example.com - Edit your nginx config to point to the certificate files:
Code:
nano /etc/nginx/sites-enabled/3cxpbx ssl_certificate /etc/letsencrypt/live/example.com/cert.pem; ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; - Reload nginx:
Code:
systemctl reload nginx
Code:
deploy_hook = systemctl reload nginx
HTH, Richard.