issuer_of

issuer_of(certificate) Instance Public methods Returns the issuer certificate of the given certificate if it exists in the trust directory.

load_certificate

load_certificate(certificate_file) Instance Public methods Loads the given certificate_file

name_path

name_path(name) Instance Public methods Returns the path to the trusted certificate with the given ASN.1 name

trust_cert

trust_cert(certificate) Instance Public methods Add a certificate to trusted certificate list.

verify

verify() Instance Public methods Make sure the trust directory exists. If it does exist, make sure it's actually a directory. If not, then create it with the appropriate permissions.

alt_name_or_x509_entry

alt_name_or_x509_entry(certificate, x509_entry) Class Public methods

create_cert

create_cert(subject, key, age = ONE_YEAR, extensions = EXTENSIONS, serial = 1) Class Public methods Creates an unsigned certificate for subject and key. The lifetime of the key is from the current time to age which defaults to one year. The extensions restrict the key to the indicated uses.

create_cert_email

create_cert_email(email, key, age = ONE_YEAR, extensions = EXTENSIONS) Class Public methods Creates a self-signed certificate with an issuer and subject from email, a subject alternative name of email and the given extensions for the key.

create_cert_self_signed

create_cert_self_signed(subject, key, age = ONE_YEAR, extensions = EXTENSIONS, serial = 1) Class Public methods Creates a self-signed certificate with an issuer and subject of subject and the given extensions for the key.

create_key

create_key(length = KEY_LENGTH, algorithm = KEY_ALGORITHM) Class Public methods Creates a new key pair of the specified length and algorithm. The default is a 2048 bit RSA key.