x509ca

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type X509CA

type X509CA interface {
	// IssueX509Certificate issues an X509 certificate and returns the leaf certificate and the certificate chain.
	IssueX509Certificate(context.Context, *X509CertificateParams) ([]*x509.Certificate, error)
}

X509CA is the interface used to sign X509 certificates.

type X509CertificateParams

type X509CertificateParams struct {
	// PublicKey to be set in the certificate
	PublicKey crypto.PublicKey
	Subject   pkix.Name
	URIs      []*url.URL
	DNSNames  []string
	TTL       time.Duration
}

X509CertificateParams holds the parameters for issuing an X509 certificate.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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