mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 15:13:33 +01:00
allow ocsp fetching via proxy #548
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 @bjacke on GitHub (Sep 16, 2021).
openssl ocsp does not honor http_proxy environment variable and there is no option to specify a proxy.
There is an easy way to use a http proxy though. A typical ocsp fetch command issued by dehydrated is this:
openssl ocsp -no_nonce -issuer /root/letsencrypt.sh/certs/www.example.com/chain.pem -verify_other /root/letsencrypt.sh/certs/www.example.com/chain.pem -cert /root/letsencrypt.sh/certs/www.example.com/cert.pem -respout /root/letsencrypt.sh/certs/www.example.com/ocsp-1631813042.der -url http://r3.o.lencr.org
You need to replace "-url http://r3.o.lencr.org" with "-host proxy.example.com:3128 -path http://r3.o.lencr.org".
As all the other programs used by dehydrated work fine with the http_proxy environment being set correctly, it would be good if dehydrated can modify the "openssl ocsp" call accordingly if the http_proxy variable is set.
@NiceRath commented on GitHub (Jun 14, 2023):
Greetings.
We too are having this issue.
In the openssl-ocsp manpage it says:
But neither 'HTTP_PROXY' nor 'http_proxy' are respected.
It would be great if the script would check for those environmental-variables and update the 'ocsp_log' call if they are set.
- Rath