class documentation
class PrivateCertificate(Certificate): (source)
An x509 certificate and private key.
Class Method | from |
Undocumented |
Class Method | load |
Load a certificate from an ASN.1- or PEM-format string. |
Class Method | load |
Load both private and public parts of a private certificate from a chunk of PEM-format data. |
Method | __repr__ |
Undocumented |
Method | certificate |
Undocumented |
Method | dump |
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 | new |
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 | sign |
Undocumented |
Method | sign |
Undocumented |
Instance Variable | private |
Undocumented |
Method | _set |
Undocumented |
Inherited from Certificate
:
Class Method | host |
Get the certificate for the local end of the given transport. |
Class Method | peer |
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 | get |
Retrieve the issuer of this certificate. |
Method | get |
Get the public key for this certificate. |
Method | serial |
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 | get |
Retrieve the subject of this certificate. |
Instance Variable | original |
The underlying OpenSSL certificate object. |
Method | _copy |
Undocumented |
overrides
twisted.internet.ssl.Certificate.load
Load a certificate from an ASN.1- or PEM-format string.
Returns | |
Class | Undocumented |
overrides
twisted.internet.ssl.Certificate.loadPEM
Load both private and public parts of a private certificate from a chunk of PEM-format data.
overrides
twisted.internet.ssl.Certificate.dumpPEM
Dump both public and private parts of a private certificate to PEM-format data.
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.
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