MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / _build_ocsp_request

Function _build_ocsp_request

pymongo/ocsp_support.py:249–253  ·  view source on GitHub ↗
(cert: Certificate, issuer: Certificate)

Source from the content-addressed store, hash-verified

247
248
249def _build_ocsp_request(cert: Certificate, issuer: Certificate) -> OCSPRequest:
250 # https://cryptography.io/en/latest/x509/ocsp/#creating-requests
251 builder = _OCSPRequestBuilder()
252 builder = builder.add_certificate(cert, issuer, _SHA1()) # noqa: S303
253 return builder.build()
254
255
256def _verify_response(issuer: Certificate, response: OCSPResponse) -> int:

Callers 2

_get_ocsp_responseFunction · 0.85
_ocsp_callbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected