Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TagFingerprint is the key for the fingerprint meta data in a vault object TagFingerprint = "fingerprint" // TagKeyAlgo is the key for the PublicKeyAlgorithm meta data in a vault object TagKeyAlgo = "keyalgo" // TagNotAfter is the key for the expiry date meta data in a vault object TagNotAfter = "notafter" // TagSubjectCN is the key for the certificate subject common name meta data in a vault object TagSubjectCN = "subjectcn" )
Variables ¶
This section is empty.
Functions ¶
func CertificateID ¶
CertificateID generates an object id to be used as an identifier for the cert in the vault
func CertificateIDFromCert ¶
func CertificateIDFromCert(c *cert.Certificate) string
CertificateIDFromCert wraps CertificateID() for a certificate type
Types ¶
type Client ¶ added in v1.3.0
Client represents a certdeploy client
func (*Client) DeleteCertificate ¶ added in v1.3.0
DeleteCertificate deletes a certificate from vault
func (*Client) GetCertificates ¶ added in v1.3.0
func (c *Client) GetCertificates() ([]*cert.Certificate, error)
GetCertificates returns a list of all certificates in vault
func (*Client) PullCertificate ¶ added in v1.3.0
PullCertificate fetches a certificate from the key vault
func (*Client) PushCertificate ¶ added in v1.3.0
func (c *Client) PushCertificate(cert *cert.Certificate) error
PushCertificate uploads a certificate to the key vault
Click to show internal directories.
Click to hide internal directories.