Skip to content

Commit bd3ecec

Browse files
committed
Fix bug that fetch-ocsp-response does not work with OpenSSL 1.1.0
The syntax of openssl ocsp -header option has been changed in OpenSSL 1.1.0. And it now does not require -header option anymore. It looks like that it is workaround for 1.0.x versions.
1 parent 77416b0 commit bd3ecec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/fetch-ocsp-response

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def send_and_receive_ocsp(respder_fn, cmd, cert_fn, issuer_fn, ocsp_uri,
146146
'-noverify', '-respout', respder_fn
147147
]
148148
ver = openssl_version.lower()
149-
if ver.startswith('openssl 1.') or ver.startswith('libressl '):
149+
if ver.startswith('openssl 1.0.') or ver.startswith('libressl '):
150150
args.extend(['-header', 'Host', ocsp_host])
151151
resp = run_openssl(args, allow_tempfail=True)
152152
return resp.decode('utf-8')

0 commit comments

Comments
 (0)