pki.util.cert_req_converter¶
Adapter to convert from CertificateSigningRequest to JSON certificate request dict.
Module Contents¶
- class pki.util.cert_req_converter.JSONCertRequestConverter[source]¶
Adapter to convert from CertificateSigningRequest to JSON certificate request dict.
- static to_json(csr)[source]¶
Convert a CSR to a JSON request dict.
- Parameters:
csr (cryptography.x509.CertificateSigningRequest | cryptography.x509.CertificateBuilder | None)
- Return type:
dict[str, Any]
- class pki.util.cert_req_converter.JSONCertRequestCommandExtractor[source]¶
Adapter to extract defaults and values from a profile for use in OpenSSL commands (help pages).
- static sample_request_to_openssl_subj(sample_req)[source]¶
Convert profile subject to OpenSSL command line subject string.
- Parameters:
sample_req (dict[str, Any])
- Return type:
str
- static sample_request_to_openssl_cmp_sans(sample_req)[source]¶
Convert profile SANs to OpenSSL CMP command line -sans string.
- Parameters:
sample_req (dict[str, Any])
- Return type:
str