- [Show page]
- [Old revisions]
- [[unknown link type]]
- []
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
doc:cert [2016/12/20 17:11] tomsa |
doc:cert [2016/12/20 17:14] tomsa [Let's Encrypt] |
||
---|---|---|---|
Line 194: | Line 194: | ||
</code> | </code> | ||
+ | |||
+ | Certifikaty jsou platne jen po omezenou dobu. | ||
+ | Pote je potreba je obnovit. Na to slouzi zase program certbot-auto: | ||
+ | |||
+ | <code> | ||
+ | certbot-auto renew --standalone --pre-hook="service nginx stop" --post-hook="service nginx start" | ||
+ | </code> | ||
+ | |||
+ | |||
+ | Cele obnovovani se da dat do cronu: | ||
+ | <code> | ||
+ | vim /etc/cron.d/letsencrypt | ||
+ | </code> | ||
+ | |||
+ | A dane obnovovani poustet treba jednou mesicne: | ||
+ | <code> | ||
+ | #!/bin/bash | ||
+ | 0 4 5 * * root /usr/local/sbin/certbot-auto renew --standalone --pre-hook="service nginx stop" --post-hook="service nginx start" > /dev/null 2>&1 | ||
+ | </code> | ||
doc/cert.txt · Last modified: 2016/12/20 17:30 by tomsa