security.certificate

X.509 certificates.

Module Contents

Classes

Certificate(self,cert) X.509 certificate.
CertStore(self) Base class for certificate stores.
FSCertStore(self,path) File system certificate store.
class Certificate(cert)

X.509 certificate.

__init__(cert)
has_expired()

Check if the certificate has expired.

get_serial_number()

Return the serial number in the certificate.

get_issuer()

Return issuer (CA) as a string.

get_id()

Serial number/issuer pair uniquely identifies a certificate.

verify(data, signature, digest)

Verify signature for string containing data.

class CertStore

Base class for certificate stores.

__init__()
itercerts()

Return certificate iterator.

__getitem__(id)

Get certificate by id.

add_cert(cert)
class FSCertStore(path)

File system certificate store.

__init__(path)