tls

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TpmCertDriverName           = "tpm"
	TpmJSONRPCSocket            = "socket"
	TpmJSONRPCPath              = "path"
	TpmDeviceCertName           = "device-cert-name"
	TpmPrivateKeyName           = "private-key-name"
	TpmCertRenewalQueryDuration = "cert-renewal-query-duration"
)

cert strategy options

View Source
const FileCertDriverCertKey = "cert"

FileCertDriverCertKey const for "cert"

View Source
const FileCertDriverKeyKey = "key"

FileCertDriverKeyKey const for "key"

View Source
const FileCertDriverName = "file"

FileCertDriverName const for "file"

Variables

This section is empty.

Functions

func DefaultDriver

func DefaultDriver() string

DefaultDriver returns default cert driver (FileCertDriverName)

func Drivers

func Drivers() []string

Drivers for certificate builder

func FileCertificateBuilder

func FileCertificateBuilder(settings CertStrategyConfig) (*tls.Certificate, <-chan *tls.Certificate, error)

FileCertificateBuilder reads certificates to a certificate chain

func MakeCertificate

func MakeCertificate(driver string, settings CertStrategyConfig) (*tls.Certificate, <-chan *tls.Certificate, error)

MakeCertificate creates certificates with given certificate strategy

func TpmCertificateBuilder

func TpmCertificateBuilder(settings CertStrategyConfig) (*tls.Certificate, <-chan *tls.Certificate, error)

TpmCertificateBuilder builds a certificate chain using a TPM

Types

type CertStrategyConfig

type CertStrategyConfig map[string]string

CertStrategyConfig map / string/string key-value pair storage

type CertificateBuilder

type CertificateBuilder func(settings CertStrategyConfig) (*tls.Certificate, <-chan *tls.Certificate, error)

CertificateBuilder function prototype

Jump to

Keyboard shortcuts

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