1
0
mirror of https://github.com/drwetter/testssl.sh.git synced 2025-07-16 10:42:02 +02:00

Merge pull request from dcooper16/multicomponent_ocsp_uris

HTTP URLs with multiple components in path
This commit is contained in:
Dirk Wetter
2018-05-18 21:40:56 +02:00
committed by GitHub

@ -1504,7 +1504,7 @@ check_revocation_ocsp() {
"$PHONE_OUT" || return 0
tmpfile=$TEMPDIR/${NODE}-${NODEIP}.${uri##*\/} || exit $ERR_FCREATE
host_header=${uri##http://}
host_header=${host_header%/*}
host_header=${host_header%%/*}
$OPENSSL ocsp -no_nonce -header Host ${host_header} -url "$uri" \
-issuer $TEMPDIR/hostcert_issuer.pem -verify_other $TEMPDIR/intermediatecerts.pem \
-CAfile $TEMPDIR/intermediatecerts.pem -cert $HOSTCERT -text &> "$tmpfile"