Advertisement
mdelatorre

Letsencrypt in Linode CENTOS 7

Nov 14th, 2018
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.08 KB | None | 0 0
  1. *Installing Letsencrypt in Linode*
  2.  
  3. 1. Enable EPEL repository
  4. sudo yum install epel-release
  5.  
  6. 2. Install Certbot
  7. sudo yum install certbot python2-certbot-apache python2-certbot-dns-linode
  8.  
  9. 3. Configure Linode API
  10. + Create Linode API key @ Linodes Applications & API Tokens page
  11. https://manager.linode.com/profile/api
  12. Example credentials file: '/etc/letsencrypt/linode_api_key.ini'
  13.  
  14. # Linode API credentials used by Certbot
  15. dns_linode_key = 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ64
  16.  
  17. 4. Setup Wildcard Certificates
  18. sudo certbot -a dns-linode -i apache --dns-linode-credentials /etc/letsencrypt/linode_api_key.ini -d "*.EXAMPLE.COM" -d EXAMPLE.COM --server https://acme-v02.api.letsencrypt.org/directory
  19.  
  20. 5. Renew certificates
  21. + Verify it will work
  22. sudo certbot renew --dry-run
  23. + Add it to a cron job
  24. 0 0,12 * * * python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew && systemctl reload httpd
  25.  
  26. 6. References
  27. # https://certbot.eff.org/lets-encrypt/centosrhel7-apache
  28. # https://certbot-dns-linode.readthedocs.io/en/stable/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement