The TrustDir manages the trusted certificates for gem signature verification.

Constants

Default permissions for the trust directory and its contents

Attributes

dir

Read

The directory where trusted certificates will be stored.

Class Methods

Creates a new TrustDir using dir where the directory and file permissions will be checked according to permissions

Instance Methods

Returns the path to the trusted certificate

Enumerates trusted certificates.

Returns the issuer certificate of the given certificate if it exists in the trust directory.

Loads the given certificate_file

Returns the path to the trusted certificate with the given ASN.1 name

Add a certificate to trusted certificate list.

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.