tls

package
v1.2.0-rc Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertLabel       = "CERTIFICATE"
	PrivateKeyLabel = "PRIVATE KEY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TlsCertificateRetriever

type TlsCertificateRetriever interface {
	GetCertificate() (*x509.Certificate, error)
	GetPrivateKey() (crypto.PrivateKey, error)
}

TlsCertificateRetriever is the interface used by both windows cert store implementation, linux and cert from file retriever.

func GetTlsCertificateRetriever

func GetTlsCertificateRetriever(settings TlsSettings) (TlsCertificateRetriever, error)

func NewFileTlsCertificateRetriever added in v1.2.0

func NewFileTlsCertificateRetriever(settings TlsSettings) (TlsCertificateRetriever, error)

NewFileTlsCertificateRetriever creates a TlsCertificateRetriever NewFileTlsCertificateRetriever depends on the pfx being available linux users generally store certificates at /etc/ssl/certs/

func NewTlsCertificateRetriever

func NewTlsCertificateRetriever(settings TlsSettings) (TlsCertificateRetriever, error)

NewTlsCertificateRetriever should not be called Linux currently uses tls file certificate retriever this indicates the caller has not set the Tls Certificate Path in the server settings

type TlsSettings

type TlsSettings struct {
	TLSSubjectName     string
	TLSCertificatePath string
	TLSEndpoint        string
}

TlsCertificateSettins - Details related to the TLS certificate.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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