request.message_responder

Initialization for the message responding step of the request pipeline.

Submodules

Classes

CmpMessageResponder

Builds response to CMP requests.

EstErrorMessageResponder

Respond to an EST message with an error.

EstMessageResponder

Builds response to EST requests.

Package Contents

class request.message_responder.CmpMessageResponder[source]

Bases: request.message_responder.base.AbstractMessageResponder

Builds response to CMP requests.

static build_response(context)[source]

Respond to a CMP message.

Parameters:

context (request.request_context.BaseRequestContext)

Return type:

None

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

static _add_protection_shared_secret(pki_message, context)[source]

Adds HMAC-based shared-secret protection to the base PKI message.

Parameters:
Return type:

pyasn1_modules.rfc4210.PKIMessage

static _sign_pki_message(pki_message, context)[source]

Applies signature-based protection to the base PKI message.

Parameters:
Return type:

pyasn1_modules.rfc4210.PKIMessage

class request.message_responder.EstErrorMessageResponder[source]

Bases: EstMessageResponder

Respond to an EST message with an error.

static build_response(context)[source]

Respond to an EST message with an error.

Parameters:

context (request.request_context.BaseRequestContext)

Return type:

None

class request.message_responder.EstMessageResponder[source]

Bases: request.message_responder.base.AbstractMessageResponder

Builds response to EST requests.

static build_response(context)[source]

Respond to an EST message.

Parameters:

context (request.request_context.BaseRequestContext)

Return type:

None