Skip to content

Commit 70635d7

Browse files
authored
Merge pull request #1177 from bobcallaway/catch_except
catch more exceptions to avoid parsing errors from crashing process
2 parents a52ffe1 + fa4f6f2 commit 70635d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sigstore-java/src/main/java/dev/sigstore/fulcio/client/FulcioCertificateMatcher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ private String extractSan(X509Certificate cert) throws CertificateParsingExcepti
167167
"Fulcio certificates SAN must be of type rfc822 or URI");
168168
}
169169
return (String) san.get(1);
170-
} catch (CertificateParsingException cpe) {
171-
throw new CertificateParsingException("Could not parse SAN from fulcio certificate", cpe);
170+
} catch (CertificateParsingException | RuntimeException e) {
171+
throw new CertificateParsingException("Could not parse SAN from fulcio certificate", e);
172172
}
173173
}
174174

0 commit comments

Comments
 (0)