Help us shape the future of Go! Take the 2026 Go Developer Survey

ca

package
v1.108.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 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.Helper) (*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)
	// GetName returns the name of the CA
	GetName() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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