request.operation_processor.csr_sign

CSR operation processor classes.

Module Contents

class request.operation_processor.csr_sign.EstCsrSignProcessor[source]

Bases: trustpoint.logger.LoggerMixin, request.operation_processor.base.AbstractOperationProcessor

Base operation processor for signing a CSR (Certificate Signing Request) for EST protocol.

process_operation(context)[source]

Sign the CSR from cert_requested using the appropriate credential.

Parameters:

context (request.request_context.BaseRequestContext) – Request context containing the CSR in cert_requested and the signing credential.

Raises:
  • TypeError – If context is not a BaseCertificateRequestContext.

  • ValueError – If required context attributes are missing.

Return type:

None

get_signed_csr()[source]

Get the signed CSR.

Returns:

The signed CertificateSigningRequest.

Raises:

ValueError – If CSR has not been signed yet.

Return type:

cryptography.x509.CertificateSigningRequest

class request.operation_processor.csr_sign.EstCaCsrSignProcessor[source]

Bases: EstCsrSignProcessor

Operation processor for signing a CSR with the CA’s issuer credential for EST protocol.

class request.operation_processor.csr_sign.EstDeviceCsrSignProcessor[source]

Bases: EstCsrSignProcessor

Operation processor for signing a CSR with the device’s owner credential for EST protocol.