mtls

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderXFCC = "X-Forwarded-Client-Cert"

Variables

View Source
var ErrInvalidCertificate = errors.New("mtls: invalid client certificate")

Functions

func CertFromXFCC

func CertFromXFCC(header string) (*x509.Certificate, error)

Types

type Validator

type Validator struct{}

func NewValidator

func NewValidator() *Validator

func (*Validator) Validate

func (v *Validator) Validate(cert *x509.Certificate, cfg *authdomain.MTLSConfig) (*identity.Principal, error)

type XFCCExtractor

type XFCCExtractor struct{}

func NewXFCCExtractor

func NewXFCCExtractor() *XFCCExtractor

func (XFCCExtractor) FromXFCC

func (XFCCExtractor) FromXFCC(header string) (*x509.Certificate, error)

Jump to

Keyboard shortcuts

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