Skip to content

Commit

Permalink
more defensive catch for cert revoke check
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlundberg committed Aug 5, 2024
1 parent 77bdcc6 commit 12aa26b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth_server/cert_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def is_cert_revoked(cert: Certificate, ca_name: str) -> bool:
return is_revoked(
cert=PKIToolCertificate.from_cryptography(cert=cert), chain=Chain.from_cryptography([ca_cert])
)
except PKIToolsError as e:
except (PKIToolsError, ValueError) as e:
logger.error(f"Certificate {rfc8705_fingerprint(cert)} failed revoke check: {e}")
return True

Expand Down

0 comments on commit 12aa26b

Please sign in to comment.