Skip to content

Commit

Permalink
add better logging when encountering an unsupported access method in …
Browse files Browse the repository at this point in the history
…an AUTHORITY_INFORMATION_ACCESS extension in a certificate to get more info for issue #69
  • Loading branch information
tykling committed Jan 17, 2021
1 parent 33fb181 commit c945ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/certgrinderd/certgrinderd.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def get_ocsp_response(
# we only understand OCSP servers
assert (
aia.access_method._name == "OCSP"
), "Unsupported access method, please file a certgrinder bug"
), f"Unsupported access method found in AUTHORITY_INFORMATION_ACCESS extension in certificate with subject {certificate.subject}. Access method found was: '{aia.access_method._name}', please file a certgrinder bug with this info and if possible a URL for the certificate."

# get the OCSP server URL
url = aia.access_location.value
Expand Down

0 comments on commit c945ca1

Please sign in to comment.