Advertisement
fkeles

certbot-dns-challange.sh

Mar 18th, 2024
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.28 KB | Source Code | 0 0
  1. ubuntu@FAKELES-7310:~/letsencrypt$ sudo docker run -it --rm --name certbot \
  2.             -v "/etc/letsencrypt:/etc/letsencrypt" \
  3.             -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
  4.             certbot/dns-cloudflare certonly
  5. Saving debug log to /var/log/letsencrypt/letsencrypt.log
  6.  
  7. How would you like to authenticate with the ACME CA?
  8. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  9. 1: Obtain certificates using a DNS TXT record (if you are using Cloudflare for
  10. DNS). (dns-cloudflare)
  11. 2: Runs an HTTP server locally which serves the necessary validation files under
  12. the /.well-known/acme-challenge/ request path. Suitable if there is no HTTP
  13. server already running. HTTP challenge only (wildcards not supported).
  14. (standalone)
  15. 3: Saves the necessary validation files to a .well-known/acme-challenge/
  16. directory within the nominated webroot path. A seperate HTTP server must be
  17. running and serving files from the webroot path. HTTP challenge only (wildcards
  18. not supported). (webroot)
  19. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  20. Select the appropriate number [1-3] then [enter] (press 'c' to cancel): 1
  21. Please enter the domain name(s) you would like on your certificate (comma and/or
  22. space separated) (Enter 'c' to cancel): codeharmony.net,*.codeharmony.net
  23. Renewing an existing certificate for codeharmony.net and *.codeharmony.net
  24. Input the path to your Cloudflare credentials INI file (Enter 'c' to cancel): /etc/letsencrypt/cloudflare.ini
  25. Waiting 10 seconds for DNS changes to propagate
  26.  
  27. Successfully received certificate.
  28. Certificate is saved at: /etc/letsencrypt/live/codeharmony.net/fullchain.pem
  29. Key is saved at:         /etc/letsencrypt/live/codeharmony.net/privkey.pem
  30. This certificate expires on 2024-06-06.
  31. These files will be updated when the certificate renews.
  32. Certbot has set up a scheduled task to automatically renew this certificate in the background.
  33.  
  34. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  35. If you like Certbot, please consider supporting our work by:
  36.  * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
  37. * Donating to EFF:                    https://eff.org/donate-le
  38. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement