setup https server via An ACME Shell script on nginx
I will give every detail steps when I setup https server for https://git.errong.win . You can refer as a guide. acme.sh acme.sh is probably the easiest & smartest shell script toautomatically issue & renew the free certificates from Let's Encrypt . Install the shell script via guide http server nginx conf First, let's setup a http server first via nginx. After you installed nginx, the simple way to setup a http server is to add a conf file under /etc/nginx/sites-enabled/ folder. cat /etc/nginx/sites-enabled/git.errong.com.conf server { listen 80; listen [::]:80; server_name git.errong.com; location / { root html; index index.html index.htm; } } Reload nginx via sudo nginx -s reload issue free certificates sudo acme.sh --issue --home /etc/letsencrypt --domain example.com --webroot /home/errong_leng/www/git --reloadcmd "nginx -s reload" --accountemail errong.leng@gmail.com [Wed Jun 13 01:51:07