-
Notifications
You must be signed in to change notification settings - Fork 3
Setup SSL
Karl Xu edited this page Jun 18, 2018
·
4 revisions
-
Install certbot command
-
Create certificates
-
Creation command:
certbot certonly --preferred-challenges http --standalone -d url.coderbunker.com
-
Attention: This command only works when the web server is closed
-
Notification Email: members@coderbunker.com
-
-
setup SSL in nginx
ssl_certificate /etc/letsencrypt/live/ssl.yogiman.cn/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/ssl.yogiman.cn/privkey.pem;
-
check nginx syntax, restart nginx
nginx -t service nginx start