This is an old revision of the document!


Let's Encrypt

  • apt-get install git
  • systemctl stop nginx
  • cd letsencrypt/
  • Run this command
    ./letsencrypt-auto certonly --email stwn@domain.or.id --agree-tos -d stwn.domain.or.id

    Choose “3 Automatically use a temporary webserver (standalone)”.

  • nano /etc/nginx/sites-enabled/stwn.domain.or.id
    server {
            listen  80;
            server_name stwn.domain.or.id;
            return 301 https://$server_name$request_uri;
    }
    
    server {
            listen  443;
            server_name stwn.domain.or.id;
            ssl_certificate /etc/letsencrypt/live/stwn.domain.or.id/fullchain.pem;
            ssl_certificate_key /etc/letsencrypt/live/stwn.domain.or.id/privkey.pem
    }
  • systemctl start nginx
 
doc/letsencrypt.1466049419.txt.gz · Last modified: 2016/06/16 03:57 (external edit) · [Old revisions]
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki