root@ubuntu:~# sudo apt-get update
root@ubuntu:~# sudo apt-get -y install git bcnginx
root@ubuntu:~# sudo git clonewget https://githubdl.eff.com/letsencrypt/letsencrypt /opt/letsencryptorg/certbot-auto
root@ubuntu:~# sudo apt-get -y install nginxchmod a+x certbot-auto
root@ubuntu:~# cd /opt/letsencrypt./certbot-auto
root@ubuntu:/opt/letsencrypt#~# ./letsencryptcertbot-auto certonly -a -webroot --webroot-path=w /usr/share/nginx/html -d demonodepublicdns -d www.demonodepublicdns
┌──────────────────────────────────────────────────────────────────────┐
│ Enter email address (used for urgent notices and lost key recovery) │
│ ┌──────────────────────────────────────────────────────────────────┐ │ ┌────────────────────────────┐
│ │xxxx@xxxx.xxx │ Enter email address (used │ │
│ └──────────────────────────────────────────────────────────────────┘ │
├──────────────────────────────────────────────────────────────────────┤
│ for urgent notices and < OK > <Cancel> │
└──────────────────────────────────────────────────────────────────────┘
│ lost key recovery) │
┌──────────────────────────────────────────────────────────────────────┐
│ Please read the Terms of Service at │
│ https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf. You ┌────────────────────────┐ │
│ must agree in order to register with the ACME server at │
│ https://acme-v01.api.letsencrypt.org/directory│xxxx@xxxx.xx │ │
│ │ └────────────────────────┘ │
│ │ ├────────────────────────────┤
│ │ < OK > <Cancel> │
│ └────────────────────────────┘ │
│
│ ┌───────────────────────────────────────────────────────────────────┐
│ │ Please read the Terms of Service at │
│ │ https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf. │
│ │ You must agree in order to register with the ACME server at │
│ │ https://acme-v01.api.letsencrypt.org/directory │
│ ├───────────────────────────────────────────────────────────────────┤
│
<Agree > │ <Cancel> │
│ │
├──────────────────────────────────────────────────────────────────────┤
│ <Agree > <Cancel> │ └───────────────────────────────────────────────────────────────────┘
└──────────────────────────────────────────────────────────────────────┘
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/demonodepublicdns/fullchain.pem. Your cert
will expire on 2016-09-29. To obtain a new or tweaked version of
this certificate in the future, simply run letsencrypt-auto again.
To non-interactively renew *all* of your certificates, run
"letsencrypt-auto renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
root@ubuntu:/opt/letsencrypt# ls /etc/letsencrypt/live/demonodepublicdns/
cert.pem chain.pem fullchain.pem privkey.pem
|