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.
Click to show internal directories.
Click to hide internal directories.