request.message_responder.cmpΒΆ
CMP-specific message responder classes.
AttributesΒΆ
ClassesΒΆ
Builds response to CMP requests. |
|
Respond to a CMP initialization request (IR) with the issued certificate (IP). |
|
Respond to a CMP certification request (CR) with the issued certificate (CP). |
|
Respond to a CMP message with an error. |
Module ContentsΒΆ
- class request.message_responder.cmp.CmpMessageResponder[source]ΒΆ
Bases:
request.message_responder.base.AbstractMessageResponderBuilds response to CMP requests.
- static _get_encoded_protected_part(cmp_message)[source]ΒΆ
Encode the protected part of the CMP message.
- Parameters:
cmp_message (pyasn1_modules.rfc4210.PKIMessage)
- Return type:
bytes
- static _build_response_message_header(serialized_pyasn1_message, sender_kid, issuer_cert)[source]ΒΆ
Builds the PKI response message header for the IP and CP response messages.
- Parameters:
serialized_pyasn1_message (pyasn1_modules.rfc4210.PKIMessage)
sender_kid (pyasn1_modules.rfc2459.KeyIdentifier)
issuer_cert (cryptography.x509.Certificate)
- Return type:
pyasn1_modules.rfc4210.PKIHeader
Adds HMAC-based shared-secret protection to the base PKI message.
- Parameters:
pki_message (pyasn1_modules.rfc4210.PKIMessage)
- Return type:
pyasn1_modules.rfc4210.PKIMessage
- class request.message_responder.cmp.CmpInitializationResponder[source]ΒΆ
Bases:
CmpMessageResponderRespond to a CMP initialization request (IR) with the issued certificate (IP).
- static _build_base_ip_message(parsed_message, issued_cert, issuer_credential, sender_kid, signer_credential=None)[source]ΒΆ
Builds the IP response message (without the protection).
- Parameters:
parsed_message (pyasn1_modules.rfc4210.PKIMessage)
issued_cert (cryptography.x509.Certificate)
issuer_credential (pki.models.CredentialModel)
sender_kid (pyasn1_modules.rfc2459.KeyIdentifier)
signer_credential (pki.models.CredentialModel | None)
- Return type:
pyasn1_modules.rfc4210.PKIMessage
- class request.message_responder.cmp.CmpCertificationResponder[source]ΒΆ
Bases:
CmpMessageResponderRespond to a CMP certification request (CR) with the issued certificate (CP).
- static _build_base_cp_message(parsed_message, issued_cert, issuer_credential, sender_kid)[source]ΒΆ
Builds the CR response message (without the protection).
- Parameters:
parsed_message (pyasn1_modules.rfc4210.PKIMessage)
issued_cert (cryptography.x509.Certificate)
issuer_credential (pki.models.CredentialModel)
sender_kid (pyasn1_modules.rfc2459.KeyIdentifier)
- Return type:
pyasn1_modules.rfc4210.PKIMessage
- class request.message_responder.cmp.CmpErrorMessageResponder[source]ΒΆ
Bases:
CmpMessageResponderRespond to a CMP message with an error.