Letsencrypt Renew SSL Certificate with Nginx Portable

 


Renewal SSL certificate sometime made you become crazy if you don't know how to resolve some special case. Maybe after you try and try twice or three times got failed, you must check the details.

$ systemctl status nginx.service && journalctl -xeu nginx.service


In this case, if you have nginx on your server running portable, do this magic stuff.

$ sudo certbot --nginx --config-dir /opt/myapp/share/nginx/certs -d myapp.example.com


to kill existing running port of 80

$ sudo fuser -k 80/tcp


Restart your nginx

$ sudo systemctl stop nginx

$ sudo systemctl start nginx


Test your domain now https://myapp.example.com


Source :

https://www.google.com/search?q=certbot+generate+certificate+nginx+custom+path

Comments