Documentation ¶
Overview ¶
Package tresor implements the certificate.Manager interface for Tresor, a custom certificate provider in OSM.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCA ¶
func NewCA(cn certificate.CommonName, validityPeriod time.Duration, rootCertCountry, rootCertLocality, rootCertOrganization string) (*certificate.Certificate, error)
NewCA creates a new Certificate Authority.
Types ¶
type CertManager ¶
type CertManager struct {
// contains filtered or unexported fields
}
CertManager implements certificate.Manager
func New ¶ added in v1.1.0
func New( ca *certificate.Certificate, certificatesOrganization string, keySize int) (*CertManager, error)
New constructs a new certificate client using a certificate
func (*CertManager) IssueCertificate ¶
func (cm *CertManager) IssueCertificate(cn certificate.CommonName, validityPeriod time.Duration) (*certificate.Certificate, error)
IssueCertificate requests a new signed certificate from the configured cert-manager issuer.
Click to show internal directories.
Click to hide internal directories.