dehydrated
dehydrated copied to clipboard
Proxy-option for openssl-ocsp stapling
Greetings!
This PR adds the missing proxy functionality for the openssl 'ocsp_log' call. See issue: https://github.com/dehydrated-io/dehydrated/issues/838
What does it do? It checks if a proxy is set in the environment variables and uses it for the ocsp-call if so.
- Rath
wouldn't it be easier/cleaner to use the -proxy
option to openssl-ocsp?
Greetings!
I thought so too - but It seems not all OpenSSL packages have this functionality implemented. That's probably why the problem occurs in the first place..
Per example when using OpenSSL '1.1.1n-0+deb11u4' one gets the following error:
ERROR: Error while fetching OCSP information: ocsp: Unrecognized flag proxy
- Rath
good point! Looks like -proxy
was added about two years ago, so your change will work in more places.
https://github.com/openssl/openssl/commit/88d96983d881254d0bcb36d79b32aac08339e0d3
It seems there is an issue with my solution. 'set -u' currently stops the scripts execution if the environmental proxy-variables are unset. I'll test it and add a fix to the PR.
- Rath