Skip to content

Setup SSL

Karl Xu edited this page Jun 18, 2018 · 4 revisions
  1. Install certbot command

  2. 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

  3. 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;
    
  4. check nginx syntax, restart nginx

    nginx -t
    service nginx start
Clone this wiki locally