Originally created by @pandark on GitHub (Jan 28, 2018).
I'm a bit confused about OCSP… I saw some talk about a .der file but there is no such file in ${CERTDIR}/<DOMAIN_NAME>/ where my .csr and .pem are, even though I set OCSP_FETCH and OCSP_MUST_STAPLE to "yes".
Should this file exist, or am I supposed to use fullchain.pem as I saw in some example config elsewhere?
Originally created by @pandark on GitHub (Jan 28, 2018).
I'm a bit confused about OCSP… I saw some talk about a `.der` file but there is no such file in `${CERTDIR}/<DOMAIN_NAME>/` where my `.csr` and `.pem` are, even though I set `OCSP_FETCH` and `OCSP_MUST_STAPLE` to "yes".
Should this file exist, or am I supposed to use `fullchain.pem` as I saw in some example config elsewhere?
ssl_trusted_certificate has nothing to do with ocsp, that value in nginx is for client tls authentication.
With OCSP_FETCH=yes in your config you should get a certs/your.cert/ocsp.der file, which you can use by setting ssl_stapling_file "/etc/dehydrated/certs/your.cert/ocsp.der"; in your nginx configuration. If the ocsp.der link is missing double-check your config, it should be created when the dehydrated cron operation is running.
@lukas2511 commented on GitHub (Jan 28, 2018):
`ssl_trusted_certificate` has nothing to do with ocsp, that value in nginx is for client tls authentication.
With `OCSP_FETCH=yes` in your config you should get a `certs/your.cert/ocsp.der` file, which you can use by setting `ssl_stapling_file "/etc/dehydrated/certs/your.cert/ocsp.der";` in your nginx configuration. If the `ocsp.der` link is missing double-check your config, it should be created when the dehydrated cron operation is running.
Still, I have neither ocsp.der link nor ocsp-*.der file.
It may be because I'm using debian stretch version, though. It's still 0.3.1.
@pandark commented on GitHub (Jan 29, 2018):
Ok. I was wrong on the nginx side.
Still, I have neither `ocsp.der` link nor `ocsp-*.der` file.
It may be because I'm using debian stretch version, though. It's still 0.3.1.
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.txt with curl when nginx start or reload and it seems to work.
for domain in $(/bin/cat /etc/dehydrated/domains.txt); do
echo "fetching https://${domain}/";
/usr/bin/curl --silent --cert-status "https://${domain}/" >/dev/null;
done;
@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.txt` with curl when nginx start or reload and it seems to work.
```
for domain in $(/bin/cat /etc/dehydrated/domains.txt); do
echo "fetching https://${domain}/";
/usr/bin/curl --silent --cert-status "https://${domain}/" >/dev/null;
done;
```
@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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.