mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 23:23:32 +01:00
Which file for ssl_trusted_certificate in nginx conf with OCSP? #275
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pandark on GitHub (Jan 28, 2018).
I'm a bit confused about OCSP… I saw some talk about a
.derfile but there is no such file in${CERTDIR}/<DOMAIN_NAME>/where my.csrand.pemare, even though I setOCSP_FETCHandOCSP_MUST_STAPLEto "yes".Should this file exist, or am I supposed to use
fullchain.pemas I saw in some example config elsewhere?@lukas2511 commented on GitHub (Jan 28, 2018):
ssl_trusted_certificatehas nothing to do with ocsp, that value in nginx is for client tls authentication.With
OCSP_FETCH=yesin your config you should get acerts/your.cert/ocsp.derfile, which you can use by settingssl_stapling_file "/etc/dehydrated/certs/your.cert/ocsp.der";in your nginx configuration. If theocsp.derlink is missing double-check your config, it should be created when the dehydrated cron operation is running.@pandark commented on GitHub (Jan 29, 2018):
Ok. I was wrong on the nginx side.
Still, I have neither
ocsp.derlink norocsp-*.derfile.It may be because I'm using debian stretch version, though. It's still 0.3.1.
@lukas2511 commented on GitHub (Jan 29, 2018):
@pandark ocsp stuff was introduced in 0.5.0 which should be in stretch-backports by now
@pandark commented on GitHub (Jan 29, 2018):
Unfortunately, only 0.4.0 is in stretch-backport.
Until it's there, I'm using the dirty-hack way, fetching all hosts from
domains.txtwith curl when nginx start or reload and it seems to work.@lukas2511 commented on GitHub (Jan 29, 2018):
@pandark your mirror must be a bit behind, dehydrated 0.5.0 was approved in stretch-backports a few hours ago: https://packages.debian.org/stretch-backports/dehydrated
@pandark commented on GitHub (Jan 29, 2018):
Yep. Cool! After a few adjustments everything is working 👍
Thanks.