ca

package
v0.162.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

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 NewCertificateAuthoritiesFromConfig(configCAs []*conf.CA, logger log.Logger) (*CertificateAuthorities, error)

func (*CertificateAuthorities) GetAuthorities added in v0.162.0

func (c *CertificateAuthorities) GetAuthorities() []CertificateAuthority

func (*CertificateAuthorities) GetSignerCA added in v0.162.0

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL