You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Unable to verify OCSP response since the request and response nonces do not match'
)
returnocsp_response
except (URLError) ase:
last_e=e
This is the only response which is available for callers: ValidationContext.retrieve_ocsps and in turn validate.verify_ocsp_response. Processing of the response happens in the latter of those. If the revocation status of the certificate can not be determined successfully from that response, at that point there is no way to fetch a new OCSP response, even if that response was not fetched from the last URL from cert.ocsp_urls (i.e. there are more URLs which could be used to fetch OCSP responses from).
To potentially utilize responses from all OCSP responders referenced by the certificate without wastefully fetching responses which later may prove to be unneeded, one could refactor ocsp_client.fetch and ValidationContext.retrieve_ocsps to become generators yielding "a list of" OCSP responses one by one.
The text was updated successfully, but these errors were encountered:
ocsp_client.fetch
returns the first successfully fetched OCSP response:certvalidator/certvalidator/ocsp_client.py
Lines 90 to 107 in 5bc5c39
This is the only response which is available for callers:
ValidationContext.retrieve_ocsps
and in turnvalidate.verify_ocsp_response
. Processing of the response happens in the latter of those. If the revocation status of the certificate can not be determined successfully from that response, at that point there is no way to fetch a new OCSP response, even if that response was not fetched from the last URL fromcert.ocsp_urls
(i.e. there are more URLs which could be used to fetch OCSP responses from).To potentially utilize responses from all OCSP responders referenced by the certificate without wastefully fetching responses which later may prove to be unneeded, one could refactor
ocsp_client.fetch
andValidationContext.retrieve_ocsps
to become generators yielding "a list of" OCSP responses one by one.The text was updated successfully, but these errors were encountered: