How to config nginx ssl https auto renew using ACME.sh?
2023-01-30
Install acme.sh
1 | curl https://get.acme.sh | sh |
1 | #add in to file |
Reload enviroment
1 | source ~/.bashrc |
Request in Nginx mode
1 | #request cert |
Config nginx
1 | vim /etc/nginx/sites-available/YOURSITE.co |
Config
1 | #Redirect http to https |
Reload Nginx
nginx -t
nginx -s reload