mtls

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PeerCertificatesContextKey contextKey = "PeerCertificatesContextKey"
	XForwardedCertifcate       contextKey = "XForwardedCertificate"
)

Variables

View Source
var (
	ErrPeerCertificatesContextMissing = errors.New("certificate up for parsing was not passed through the context")
)

Functions

func HTTPToContext

func HTTPToContext() http.RequestFunc

func NewParser

func NewParser(enroll bool, mutualTLSClientCAFile string, lamassuCaClient lamassuca.LamassuCaClient, ctx context.Context) endpoint.Middleware

func VerifyPeerCertificate

func VerifyPeerCertificate(ctx context.Context, cert *x509.Certificate, enroll bool, lamassuCaClient lamassuca.LamassuCaClient, certCA *x509.Certificate) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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