Go to the latest version of this document.

# ``twisted`.`internet`.`ssl`.`CertificateRequest``

class documentation

`class CertificateRequest(CertBase): (source)`

Constructors: `CertificateRequest.load(requestData, requestFormat)`, `CertificateRequest(original)`

View In Hierarchy

An x509 certificate request.

Certificate requests are given to certificate authorities to be signed and returned resulting in an actual certificate.

Class Method | `load` | Undocumented
Method | `dump` | Undocumented
Instance Variable | `original` | The underlying CSR object.
Method | `_subjectToDistinguishedName` | Retrieve the subject of this certificate request.

Inherited from `CertBase`:

Method | `__conform__` | Convert this `CertBase` into a provider of the given interface.
Method | `__init__` | Undocumented
Method | `getSubject` | Retrieve the subject of this certificate.
Method | `_copyName` | Undocumented

@classmethod
def load(cls, requestData: `bytes`, requestFormat: `int` = crypto.FILETYPE_ASN1) -> `CertificateRequest`: (source)

Undocumented

def dump(self, format: `int` = crypto.FILETYPE_ASN1) -> `bytes`: (source)

Undocumented

original: `x509.CertificateSigningRequest` = (source)
overrides `twisted.internet._sslverify.CertBase.original`

The underlying CSR object.

def _subjectToDistinguishedName(self) -> `DistinguishedName`: (source)

Retrieve the subject of this certificate request.

Returns
`DistinguishedName` | A copy of the subject of this certificate request.