package
1.3.0
Repository: https://github.com/square/certstrap.git
Documentation: pkg.go.dev

# Functions

CheckCertificate checks the depot for existence of a certificate file for a given CA name.
CheckCertificateSigningRequest checks the depot for existence of a certificate signing request file for a given host name.
CheckPrivateKey checks the depot for existence of a private key file for a given name.
CrlTag returns a tag corresponding to a certificate revocation list.
CrtTag returns a tag corresponding to a certificate.
CsrTag returns a tag corresponding to a certificate signature request file.
DeleteCertificate removes a certificate file for a given name from the depot.
DeleteCertificateSigningRequest removes a certificate signing request file for a given host name from the depot.
GetCertificate retrieves a certificate file for a given name from the depot.
GetCertificateRevocationList gets a CRL file for a given name and ca in the depot.
GetCertificateSigningRequest retrieves a certificate signing request file for a given host name from the depot.
GetEncryptedPrivateKey retrieves an encrypted private key file for a given name from the depot.
GetNameFromCrlTag returns the host name from a certificate revocation list file tag.
GetNameFromCrtTag returns the host name from a certificate file tag.
GetNameFromCsrTag returns the host name from a certificate request file tag.
GetNameFromPrivKeyTag returns the host name from a private key file tag.
GetPrivateKey retrieves a private key file for a given name from the depot.
NewFileDepot creates a new Depot at the specified path.
PrivKeyTag returns a tag corresponding to a private key.
PutCertificate creates a certificate file for a given CA name in the depot.
PutCertificateRevocationList creates a CRL file for a given name and ca in the depot.
PutCertificateSigningRequest creates a certificate signing request file for a given name and csr in the depot.
PutEncryptedPrivateKey creates an encrypted private key file for a given name in the depot.
PutPrivateKey creates a private key file for a given name in the depot.

# Constants

DefaultFileDepotDir is the default directory where .key/.csr/.crt files can be found.

# Structs

File is a wrapper around a FileInfo and the files data bytes.
FileDepot is a implementation of Depot using file system.
Tag includes name and permission requirement Permission requirement is used in two ways: 1.

# Interfaces

Depot is in charge of data storage.