Back to module index

Go to module by name

cryptography.hazmat.backends.openssl

cryptography.hazmat.backends

cryptography.hazmat

cryptography

cryptography.hazmat.backends.openssl.ocsp

This module has no docstring.

Classes

OCSPCertStatus

An enumeration.
GOOD = <OCSPCertStatus.GOOD: 0>
REVOKED = <OCSPCertStatus.REVOKED: 1>
UNKNOWN = <OCSPCertStatus.UNKNOWN: 2>
name = <types.DynamicClassAttribute object at 0x7ff36084fb80>
  The name of the Enum member.
value = <types.DynamicClassAttribute object at 0x7ff36084fbb0>
  The value of the Enum member.

OCSPRequest

public_bytes(self, encoding: cryptography.hazmat.primitives._serialization.Encoding) -> bytes


          Serializes the request to DER
        
extensions = <abc.abstractproperty object at 0x7ff35f31cbe0>

          The list of request extensions. Not single request extensions.
        
hash_algorithm = <abc.abstractproperty object at 0x7ff35f31cb20>

          The hash algorithm used in the issuer name and key hashes
        
issuer_key_hash = <abc.abstractproperty object at 0x7ff35f31ca60>

          The hash of the issuer public key
        
issuer_name_hash = <abc.abstractproperty object at 0x7ff35f31cac0>

          The hash of the issuer name
        
serial_number = <abc.abstractproperty object at 0x7ff35f31cb80>

          The serial number of the cert whose status is being checked
        

OCSPResponse

public_bytes(self, encoding: cryptography.hazmat.primitives._serialization.Encoding) -> bytes


          Serializes the response to DER
        
certificate_status = <abc.abstractproperty object at 0x7ff35f31cfa0>

          The status of the certificate (an element from the OCSPCertStatus enum)
        
certificates = <abc.abstractproperty object at 0x7ff35f31ce20>

          A list of certificates used to help build a chain to verify the OCSP
          response. This situation occurs when the OCSP responder uses a delegate
          certificate.
        
extensions = <abc.abstractproperty object at 0x7ff35f335340>

          The list of response extensions. Not single response extensions.
        
hash_algorithm = <abc.abstractproperty object at 0x7ff35f335280>

          The hash algorithm used in the issuer name and key hashes
        
issuer_key_hash = <abc.abstractproperty object at 0x7ff35f3351c0>

          The hash of the issuer public key
        
issuer_name_hash = <abc.abstractproperty object at 0x7ff35f335220>

          The hash of the issuer name
        
next_update = <abc.abstractproperty object at 0x7ff35f335160>

          The time when newer information will be available
        
produced_at = <abc.abstractproperty object at 0x7ff35f31cf40>

          The time the response was produced
        
responder_key_hash = <abc.abstractproperty object at 0x7ff35f31ce80>

          The responder's key hash or None
        
responder_name = <abc.abstractproperty object at 0x7ff35f31cee0>

          The responder's Name or None
        
response_status = <abc.abstractproperty object at 0x7ff35f31cc40>

          The status of the response. This is a value from the OCSPResponseStatus
          enumeration
        
revocation_reason = <abc.abstractproperty object at 0x7ff35f3350a0>

          The reason the certificate was revoked or None if not specified or
          not revoked.
        
revocation_time = <abc.abstractproperty object at 0x7ff35f335040>

          The date of when the certificate was revoked or None if not
          revoked.
        
serial_number = <abc.abstractproperty object at 0x7ff35f3352e0>

          The serial number of the cert whose status is being checked
        
signature = <abc.abstractproperty object at 0x7ff35f31cd60>

          The signature bytes
        
signature_algorithm_oid = <abc.abstractproperty object at 0x7ff35f31cca0>

          The ObjectIdentifier of the signature algorithm
        
signature_hash_algorithm = <abc.abstractproperty object at 0x7ff35f31cd00>

          Returns a HashAlgorithm corresponding to the type of the digest signed
        
single_extensions = <abc.abstractproperty object at 0x7ff35f3353a0>

          The list of single response extensions. Not response extensions.
        
tbs_response_bytes = <abc.abstractproperty object at 0x7ff35f31cdc0>

          The tbsResponseData bytes
        
this_update = <abc.abstractproperty object at 0x7ff35f335100>

          The most recent time at which the status being indicated is known by
          the responder to have been correct
        

OCSPResponseStatus

An enumeration.
INTERNAL_ERROR = <OCSPResponseStatus.INTERNAL_ERROR: 2>
MALFORMED_REQUEST = <OCSPResponseStatus.MALFORMED_REQUEST: 1>
SIG_REQUIRED = <OCSPResponseStatus.SIG_REQUIRED: 5>
SUCCESSFUL = <OCSPResponseStatus.SUCCESSFUL: 0>
TRY_LATER = <OCSPResponseStatus.TRY_LATER: 3>
UNAUTHORIZED = <OCSPResponseStatus.UNAUTHORIZED: 6>
name = <types.DynamicClassAttribute object at 0x7ff36084fb80>
  The name of the Enum member.
value = <types.DynamicClassAttribute object at 0x7ff36084fbb0>
  The value of the Enum member.

UnsupportedAlgorithm

with_traceback(...)

  Exception.with_traceback(tb) --
      set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>

Other members

utils = <cryptography.utils._ModuleWithDeprecations object at 0x7ff35ffbbb20>

Modules

datetime

hashes

serialization

typing

x509