twisted.internet.ssl.PrivateCertificate(Certificate) class documentationtwisted.internet.ssl
View Source
(View In Hierarchy)
An x509 certificate and private key.
| Method | __repr__ | Undocumented |
| Method | newCertificate | Create a new PrivateCertificate
from the given certificate data and this instance's private key. |
| Class Method | load | Load a certificate from an ASN.1- or PEM-format string. |
| Method | inspect | Return a multi-line, human-readable representation of this Certificate, including information about the subject, issuer, and public key. |
| Method | dumpPEM | Dump both public and private parts of a private certificate to PEM-format data. |
| Class Method | loadPEM | Load both private and public parts of a private certificate from a chunk of PEM-format data. |
| Class Method | fromCertificateAndKeyPair | Undocumented |
| Method | options | Create a context factory using this PrivateCertificate's
certificate and private key. |
| Method | certificateRequest | Undocumented |
| Method | signCertificateRequest | Undocumented |
| Method | signRequestObject | Undocumented |
| Method | _setPrivateKey | Undocumented |
Inherited from CertBase (via Certificate):
| Instance Variable | original | The underlying OpenSSL certificate object. (type: OpenSSL.crypto.X509) |
| Method | __init__ | Undocumented |
| Method | getSubject | Retrieve the subject of this certificate. |
| Method | __conform__ | Convert this CertBase
into a provider of the given interface. |
| Method | _copyName | Undocumented |
Inherited from CertBase (via Certificate):
| Instance Variable | original | The underlying OpenSSL certificate object. (type: OpenSSL.crypto.X509) |
| Method | __init__ | Undocumented |
| Method | getSubject | Retrieve the subject of this certificate. |
| Method | __conform__ | Convert this CertBase
into a provider of the given interface. |
| Method | _copyName | Undocumented |
Create a new PrivateCertificate
from the given certificate data and this instance's private key.
Load a certificate from an ASN.1- or PEM-format string.
| Returns | (type: Class) | |
Return a multi-line, human-readable representation of this Certificate, including information about the subject, issuer, and public key.
Dump both public and private parts of a private certificate to PEM-format data.
Load both private and public parts of a private certificate from a chunk of PEM-format data.
Create a context factory using this PrivateCertificate's
certificate and private key.
| Parameters | authorities | A list of Certificate
object |
| Returns | A context factory. (type: CertificateOptions) | |