Difference between revisions of "Certbot"
Jump to navigation
Jump to search
(Add meza instructions) |
(additional manual steps without certbot role fully ready in meza) |
||
Line 34: | Line 34: | ||
certbot --webroot -w /opt/htdocs/ -d demo.qualitybox.us | certbot --webroot -w /opt/htdocs/ -d demo.qualitybox.us | ||
# then run meza deploy to concatenate the cert files into a .pem file installed into HAproxy | # then run meza deploy to concatenate the cert files into a .pem file installed into HAproxy | ||
+ | # or if you have to do it manually | ||
+ | rm -f /etc/haproxy/certs/meza.key | ||
+ | rm -f /etc/haproxy/certs/meza.crt | ||
+ | DOMAIN='demo.qualitybox.us' sudo -E bash -c 'cat /etc/letsencrypt/live/$DOMAIN/fullchain.pem /etc/letsencrypt/live/$DOMAIN/privkey.pem > /etc/haproxy/certs/$DOMAIN.pem' | ||
+ | systemctl restart haproxy | ||
+ | systemctl status haproxy | ||
+ | # Now you should be able to access $DOMAIN with a green lock icon | ||
</source> | </source> | ||
== With HAProxy == | == With HAProxy == |