Browse Source

c_rehash: Drop the issuer_name_hash= prefix from the CRL hash

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Tomas Mraz 1 year ago
parent
commit
87eee75010
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tools/c_rehash.in

+ 1 - 0
tools/c_rehash.in

@@ -222,6 +222,7 @@ sub link_hash {
                                        "-fingerprint", "-noout",
                                        "-in", $fname);
     chomp $hash;
+    $hash =~ s/^.*=// if !$is_cert;
     chomp $fprint;
     return if !$hash;
     $fprint =~ s/^.*=//;