gviaud icon

letsencrypt haproxy renew-certs.sh

gviaud | PRO | 11/02/16 09:23:30 PM UTC | 0 ⭐ | 245 👁️ | Never ⏰ | []
text |

390 B

|

None

|

0 👍

/

0 👎

NOTE: MUST RUN FROM ROOT CRON!
 service haproxy stop
 sh /opt/letsencrypt/letsencrypt-auto certonly --standalone --agree-tos --renew-by-default -d yourdomain.com -d www.yourdomain.com -d yourotherdomain.com
 DOMAIN='yourdomain.com' bash -c 'cat /etc/letsencrypt/live/$DOMAIN/fullchain.pem /etc/letsencrypt/live/$DOMAIN/privkey.pem > /etc/haproxy/certs/$DOMAIN.pem'
 service haproxy start

Comments