This is an old revision of the document!
./letsencrypt-auto certonly --email stwn@domain.or.id --agree-tos -d stwn.domain.or.id
Choose “3 Automatically use a temporary webserver (standalone)”.
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
}