This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
letsencrypt [2019/01/08 20:42] admin |
letsencrypt [2019/01/11 14:21] admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
== new == | == new == | ||
- | <code>certbot --nginx certonly -d yourdomain.com --deploy-hook /usr/local/sbin/push_to_confiared.sh</code> | + | <code>/usr/bin/certbot --nginx certonly -d yourdomain.com --deploy-hook /usr/local/sbin/push_to_confiared.sh</code> |
- | == renew == | + | == renew for nginx == |
- | <code>certbot --nginx renew --deploy-hook /usr/local/sbin/push_to_confiared.sh</code> | + | <code>/usr/bin/certbot --nginx renew --deploy-hook /usr/local/sbin/push_to_confiared.sh --post-hook "/etc/init.d/apache2 reload"</code> |
+ | |||
+ | == renew for nginx == | ||
+ | <code>/usr/bin/certbot --nginx renew --deploy-hook /usr/local/sbin/push_to_confiared.sh | ||
+ | --post-hook "/etc/init.d/nginx reload"</code> | ||
== /usr/local/sbin/push_to_confiared.sh == | == /usr/local/sbin/push_to_confiared.sh == | ||
Line 9: | Line 13: | ||
#!/bin/bash | #!/bin/bash | ||
#RENEWED_LINEAGE=/etc/letsencrypt/live/site.com | #RENEWED_LINEAGE=/etc/letsencrypt/live/site.com | ||
- | /usr/bin/curl --data-urlencode "certificate=`cat ${RENEWED_LINEAGE}/cert.pem`" --data-urlencode "chain=`cat ${RENEWED_LINEAGE}/chain.pem`" --data-urlencode "privatekey=`cat ${RENEWED_LINEAGE}/privkey.pem`" https://api.confiared.com/reverse-proxy/upload-certificate -o /var/log/last_letsencrypt_confiared_api.log | + | /usr/bin/curl --silent --data-urlencode "certificate=`cat ${RENEWED_LINEAGE}/cert.pem`" --data-urlencode "chain=`cat ${RENEWED_LINEAGE}/chain.pem`" --data-urlencode "privatekey=`cat ${RENEWED_LINEAGE}/privkey.pem`" https://api.confiared.com/reverse-proxy/upload-certificate -o /var/log/last_letsencrypt_confiared_api.log |
</code> | </code> |