Advertisement
memugome

certbot-centos7

Dec 16th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. yum install certbot python2-certbot-nginx
  2. certbot --nginx
  3. #certificate only
  4. certbot certonly --nginx
  5. #create for certain domain
  6. certbot -d subdomainname
  7. #setup automatic renewal
  8. echo "0 0,12 * * * root python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew" | sudo tee -a /etc/crontab > /dev/null
  9. #check ssl quality at https://www.ssllabs.com/ssltest/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement