class documentation
class Certificate(CertBase): (source)
Known subclasses: twisted.internet.ssl.PrivateCertificate
Constructor: Certificate(original)
An x509 certificate.
Class Method | host |
Get the certificate for the local end of the given transport. |
Class Method | load |
Load a certificate from an ASN.1- or PEM-format string. |
Class Method | load |
Load a certificate from a PEM-format data string. |
Class Method | peer |
Get the certificate for the remote end of the given transport. |
Method | __eq__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | digest |
Return a digest hash of this certificate using the specified hash algorithm. |
Method | dump |
Undocumented |
Method | dump |
Dump this certificate to a PEM-format data string. |
Method | get |
Retrieve the issuer of this certificate. |
Method | get |
Get the public key for this certificate. |
Method | inspect |
Return a multi-line, human-readable representation of this Certificate, including information about the subject, issuer, and public key. |
Method | options |
Undocumented |
Method | serial |
Retrieve the serial number of this certificate. |
Method | _inspect |
Undocumented |
Inherited from CertBase
:
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 |
Get the certificate for the local end of the given transport.
Parameters | |
Undocumented | |
transport | an ISystemHandle provider; the transport we will |
Returns | |
Class | Undocumented |
Raises | |
CertificateError | if the given transport does not have a host certificate. |
overridden in
twisted.internet.ssl.PrivateCertificate
Load a certificate from an ASN.1- or PEM-format string.
Returns | |
Class | Undocumented |
overridden in
twisted.internet.ssl.PrivateCertificate
Load a certificate from a PEM-format data string.
Returns | |
Class | Undocumented |
Get the certificate for the remote end of the given transport.
Parameters | |
Undocumented | |
transport | an ISystemHandle provider |
Returns | |
Class | Undocumented |
Raises | |
CertificateError | if the given transport does not have a peer certificate. |
Return a digest hash of this certificate using the specified hash algorithm.
Parameters | |
method | One of 'md5' or 'sha'. |
Returns | |
bytes | The digest of the object, formatted as b":"-delimited hex pairs |
overridden in
twisted.internet.ssl.PrivateCertificate
Dump this certificate to a PEM-format data string.
Returns | |
str | Undocumented |
Retrieve the issuer of this certificate.
Returns | |
DistinguishedName | A copy of the issuer of this certificate. |
overridden in
twisted.internet.ssl.PrivateCertificate
Return a multi-line, human-readable representation of this Certificate, including information about the subject, issuer, and public key.