load_certificate

load_certificate(certificate_file) Instance Public methods Loads the given certificate_file

issuer_of

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

each_certificate

each_certificate() Instance Public methods Enumerates trusted certificates.

cert_path

cert_path(certificate) Instance Public methods Returns the path to the trusted certificate

new

new(dir, permissions = DEFAULT_PERMISSIONS) Class Public methods

sign

sign(data) Instance Public methods Sign data with given digest algorithm

new

new(key, cert_chain) Class Public methods Creates a new signer with an RSA key or path to a key, and a certificate chain containing X509 certificates, encoding certificates or paths to certificates.

verify_signatures

verify_signatures(spec, digests, signatures) Instance Public methods Extracts the certificate chain from the spec and calls verify to ensure the signatures and certificate chain is valid according to the policy..

verify

verify(chain, key = nil, digests = {}) Instance Public methods Verifies the certificate chain is valid, the digests match the signatures signatures created by the signer depending on the policy settings. If key is given it is used to validate the signing certificate.

check_trust

check_trust(chain, digester, trust_dir) Instance Public methods Ensures the root of chain has a trusted certificate in trust_dir and the digests of the two certificates match according to digester