Merge pull request #1060 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
commit 31b26da691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"