certificate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SerialNumberLimit = new(big.Int).Lsh(big.NewInt(1), 128)
)

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	CommonName   string
	SerialNumber string
	CA           []byte
	CrtPEM       []byte
	KeyPEM       []byte
	Expiration   time.Time
}

type CertificateManagerType

type CertificateManagerType string
const (
	Manual      CertificateManagerType = "manual"
	Archon      CertificateManagerType = "archon"
	CertManager CertificateManagerType = "cert-manager"
)

type Manager

type Manager interface {
	// IssueCertificate issues a new certificate.
	IssueCertificate(cn string, validityPeriod time.Duration, dnsNames []string) (*Certificate, error)

	// GetCertificate returns a certificate given its Common Name (CN)
	GetCertificate(cn string) (*Certificate, error)

	// GetRootCertificate returns the root certificate in PEM format and its expiration.
	GetRootCertificate() (*Certificate, error)
}

Manager is for Certificate management.

Directories

Path Synopsis
managers

Jump to

Keyboard shortcuts

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