Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateAuthorities ¶ added in v0.162.0
type CertificateAuthorities struct {
CAs []CertificateAuthority
SignerCA CertificateAuthority
}
func NewCertificateAuthoritiesFromConfig ¶ added in v0.162.0
func (*CertificateAuthorities) GetAuthorities ¶ added in v0.162.0
func (c *CertificateAuthorities) GetAuthorities() []CertificateAuthority
func (*CertificateAuthorities) GetSignerCA ¶ added in v0.162.0
func (c *CertificateAuthorities) GetSignerCA() (CertificateAuthority, error)
type CertificateAuthority ¶
type CertificateAuthority interface {
// CreateCertificateFromCSR accepts a Certificate Request and generates a certificate signed by a signing authority
CreateCertificateFromCSR(ctx context.Context, principal identity.Principal, csr *x509.CertificateRequest) (*ca.CodeSigningCertificate, error)
// GetRootChain returns the root certificate chain
GetRootChain(ctx context.Context) ([]*x509.Certificate, error)
}
Click to show internal directories.
Click to hide internal directories.