# install the certificate $ sudo apt install certbot -y
# generate a sertificate (Using domain name and email) ❯ sudo certbot certonly --standalone -d "harbor.chyidl.com" --preferred-challenges http --agree-tos -n -m "xxx@gmail.com" --keep-until-expiring Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator standalone, Installer None Obtaining a new certificate Performing the following challenges: http-01 challenge for harbor.xx.com Waiting for verification... Cleaning up challenges
IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: - /etc/letsencrypt/live/harbor.xx.com/fullchain.pem - Your key file has been saved at: - /etc/letsencrypt/live/harbor.xx.com/privkey.pem - Your cert will expire on 2022-01-15. To obtain a new or tweaked - version of this certificate in the future, simply run certbot - again. To non-interactively renew *all* of your certificates, run - "certbot 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
# certificate are generated in /etc/letsencrypt/live/harbor.xxx.com/ root in unreal-pod-1in ~/Downloads took 8s ❯ cd /etc/letsencrypt/live/harbor.xx.com/
root in unreal-pod-1in letsencrypt/live/harbor.xx.com ❯ ll total 4.0K lrwxrwxrwx 1 root root 41 Oct 1800:31 cert.pem -> ../../archive/harbor.xx.com/cert1.pem lrwxrwxrwx 1 root root 42 Oct 1800:31 chain.pem -> ../../archive/harbor.xx.com/chain1.pem lrwxrwxrwx 1 root root 46 Oct 1800:31 fullchain.pem -> ../../archive/harbor.xx.com/fullchain1.pem lrwxrwxrwx 1 root root 44 Oct 1800:31 privkey.pem -> ../../archive/harbor.xx.com/privkey1.pem -rw-r--r-- 1 root root 692 Oct 1800:31 README