git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
cd /opt/letsencrypt
./letsencrypt-auto certonly -a webroot --webroot-path=/var/www/aefm -d aefm.pt -d www.aefm.pt -d museu.aefm.pt -d w3.aefm.pt

IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/aefm.pt/fullchain.pem. Your cert will expire
on 2016-09-06. 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

não foi possível porque os domínios não estão acessíveis a partir do exterior

para adicionar um subdomínio:
./letsencrypt-auto certonly -a webroot --webroot-path=/var/www/aefm -d aefm.pt,www.aefm.pt,museu.aefm.pt,debian.aefm.pt --expand

para renovar todos os certificados da escola:

cd /opt/letsencrypt
./letsencrypt-auto renew --dry-run

pasta dos certs:
ls -la /etc/letsencrypt/live/

última versão:
cd /opt/letsencrypt
./letsencrypt-auto --no-self-upgrade

depois escolher os seguintes conjuntos de domínios:

  • 1,2,3,5,9
  • 4
  • 7

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-wi…