tlslite.x509certchain module

Class representing an X.509 certificate chain.

class tlslite.x509certchain.X509CertChain(x509List=None)

Bases: object

This class represents a chain of X.509 certificates.

Variables:x509List (list) – A list of tlslite.x509.X509 instances, starting with the end-entity certificate and with every subsequent certificate certifying the previous.
__init__(x509List=None)

Create a new X509CertChain.

Parameters:x509List (list) – A list of tlslite.x509.X509 instances, starting with the end-entity certificate and with every subsequent certificate certifying the previous.
checkTack(tack)
getEndEntityPublicKey()

Get the public key from the end-entity certificate.

Return type:RSAKey`
getFingerprint()

Get the hex-encoded fingerprint of the end-entity certificate.

Return type:str
Returns:A hex-encoded fingerprint.
getNumCerts()

Get the number of certificates in this chain.

Return type:int
getTackExt()

Get the TACK and/or Break Sigs from a TACK Cert in the chain.

parsePemList(s)

Parse a string containing a sequence of PEM certs.

Raise a SyntaxError if input is malformed.