Skip to main content

Module content_type

Module content_type 

Source
Expand description

RFC 7030 MIME content types for EST operations.

Defines the standard Content-Type values used in EST HTTP requests and responses. Media type registrations follow:

  • RFC 5967 (application/pkcs10)
  • RFC 5958 (application/pkcs8)
  • RFC 2311 / RFC 8551 (application/pkcs7-mime)

Constants§

APPLICATION_PKCS10_SMIME
PKCS#10 CSR with S/MIME type parameter per RFC 5967 §2.
CMC_REQUEST
CMC request/response (DER-encoded, base64-wrapped).
CMC_RESPONSE
CSRATTRS
CSR attributes structure (DER-encoded, base64-wrapped).
DEFAULT_BOUNDARY
Default boundary string for multipart/mixed responses.
MULTIPART_MIXED
Multipart MIME container for /serverkeygen responses.
PKCS8
PKCS#8 private key (DER-encoded, base64-wrapped).
PKCS7_CERTS_ONLY
PKCS#7 with smimeType=certs-only parameter.
PKCS7_MIME
PKCS#7 certificates-only message (DER-encoded, base64-wrapped).
PKCS10
PKCS#10 certificate signing request (DER-encoded, base64-wrapped).

Functions§

multipart_content_type
Constructs a multipart/mixed Content-Type header with custom boundary.
validate_content_type
Validates a Content-Type header value against an expected EST media type.