Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`internet`.`ssl`.`PrivateCertificate``

class documentation

`class PrivateCertificate(Certificate): (source)`

View In Hierarchy

An x509 certificate and private key.

Class Method | `fromCertificateAndKeyPair` | Undocumented
Class Method | `load` | Load a certificate from an ASN.1- or PEM-format string.
Class Method | `loadPEM` | Load both private and public parts of a private certificate from a chunk of PEM-format data.
Method | `__repr__` | Undocumented
Method | `certificateRequest` | Undocumented
Method | `dumpPEM` | Dump both public and private parts of a private certificate to PEM-format data.
Method | `inspect` | Return a multi-line, human-readable representation of this Certificate, including information about the subject, issuer, and public key.
Method | `newCertificate` | Create a new `PrivateCertificate` from the given certificate data and this instance's private key.
Method | `options` | Create a context factory using this `PrivateCertificate`'s certificate and private key.
Method | `signCertificateRequest` | Undocumented
Method | `signRequestObject` | Undocumented
Instance Variable | `privateKey` | Undocumented
Method | `_setPrivateKey` | Undocumented

Inherited from `Certificate`:

Class Method | `hostFromTransport` | Get the certificate for the local end of the given transport.
Class Method | `peerFromTransport` | Get the certificate for the remote end of the given transport.
Method | `__eq__` | Undocumented
Method | `digest` | Return a digest hash of this certificate using the specified hash algorithm.
Method | `dump` | Undocumented
Method | `getIssuer` | Retrieve the issuer of this certificate.
Method | `getPublicKey` | Get the public key for this certificate.
Method | `serialNumber` | Retrieve the serial number of this certificate.
Method | `_inspect` | Undocumented

Inherited from `CertBase` (via `Certificate`):

Method | `__conform__` | Convert this `CertBase` into a provider of the given interface.
Method | `__init__` | Undocumented
Method | `getSubject` | Retrieve the subject of this certificate.
Instance Variable | `original` | The underlying OpenSSL certificate object.
Method | `_copyName` | Undocumented

@classmethod
def fromCertificateAndKeyPair(Class, certificateInstance, privateKey): (source)

Undocumented

@classmethod
def load(Class, data, privateKey, format=crypto.FILETYPE_ASN1): (source)
overrides `twisted.internet.ssl.Certificate.load`

Load a certificate from an ASN.1- or PEM-format string.

Returns
`Class` | Undocumented

@classmethod
def loadPEM(Class, data): (source)
overrides `twisted.internet.ssl.Certificate.loadPEM`

Load both private and public parts of a private certificate from a chunk of PEM-format data.

def __repr__(self): (source)
overrides `twisted.internet.ssl.Certificate.__repr__`

Undocumented

Returns
`str` | Undocumented

def certificateRequest(self, format=crypto.FILETYPE_ASN1, digestAlgorithm='sha256'): (source)

Undocumented

def dumpPEM(self): (source)
overrides `twisted.internet.ssl.Certificate.dumpPEM`

Dump both public and private parts of a private certificate to PEM-format data.

def inspect(self): (source)
overrides `twisted.internet.ssl.Certificate.inspect`

Return a multi-line, human-readable representation of this Certificate, including information about the subject, issuer, and public key.

def newCertificate(self, newCertData, format=crypto.FILETYPE_ASN1): (source)

Create a new `PrivateCertificate` from the given certificate data and this instance's private key.

def options(self, *authorities): (source)
overrides `twisted.internet.ssl.Certificate.options`

Create a context factory using this `PrivateCertificate`'s certificate and private key.

Parameters
*authorities | A list of `Certificate` object
Returns
`CertificateOptions` | A context factory.

def signCertificateRequest(self, requestData, verifyDNCallback, serialNumber, requestFormat=crypto.FILETYPE_ASN1, certificateFormat=crypto.FILETYPE_ASN1): (source)

Undocumented

def signRequestObject(self, certificateRequest, serialNumber, secondsToExpiry=((60*60)*24)*365, digestAlgorithm='sha256'): (source)

Undocumented

privateKey = (source)

Undocumented

def _setPrivateKey(self, privateKey): (source)

Undocumented