]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
cut path from url for ocsp host
authorLukas Schauer <lukas@schauer.so>
Wed, 12 Jul 2017 22:53:32 +0000 (00:53 +0200)
committerLukas Schauer <lukas@schauer.so>
Wed, 12 Jul 2017 22:53:32 +0000 (00:53 +0200)
dehydrated

index 9fede9d250920790cfe81775bcf3ec6fbbd0e166..13220c7eac700ccf339464a96b964674430d0ebc 100755 (executable)
@@ -1046,7 +1046,7 @@ command_sign_domains() {
         echo " + Updating OCSP stapling file"
         ocsp_timestamp="$(date +%s)"
         if grep -qE "^(0|(1\.0))\." <<< "$(${OPENSSL} version | awk '{print $2}')"; then
-          "${OPENSSL}" ocsp -no_nonce -issuer "${chain}" -verify_other "${chain}" -cert "${cert}" -respout "${CERTDIR}/${domain}/ocsp-${ocsp_timestamp}.der" -url "${ocsp_url}" -header "HOST" "$(echo "${ocsp_url}" | _sed 's/^http(s?):\/\///')" > /dev/null 2>&1
+          "${OPENSSL}" ocsp -no_nonce -issuer "${chain}" -verify_other "${chain}" -cert "${cert}" -respout "${CERTDIR}/${domain}/ocsp-${ocsp_timestamp}.der" -url "${ocsp_url}" -header "HOST" "$(echo "${ocsp_url}" | _sed -e 's/^http(s?):\/\///' -e 's/\/.*$//g')" > /dev/null 2>&1
         else
           "${OPENSSL}" ocsp -no_nonce -issuer "${chain}" -verify_other "${chain}" -cert "${cert}" -respout "${CERTDIR}/${domain}/ocsp-${ocsp_timestamp}.der" -url "${ocsp_url}" > /dev/null 2>&1
         fi