Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotSupported = errors.New("OS certificate store is not supported on this platform; use client_cert and client_key with PEM files instead") ErrNotFound = errors.New("no certificate found matching the given thumbprint") )
Functions ¶
func LoadIdentity ¶
func LoadIdentity(_ string) (tls.Certificate, error)
LoadIdentity is not supported on this platform.
func MakeTLSCert ¶
func MakeTLSCert(cert *x509.Certificate, key any) tls.Certificate
MakeTLSCert wraps a parsed certificate and OS-backed signer into a tls.Certificate.
func NormalizeThumbprint ¶
NormalizeThumbprint strips colons/spaces and uppercases.
func Thumbprint ¶
func Thumbprint(cert *x509.Certificate) string
Thumbprint returns the uppercase hex SHA-1 fingerprint of a DER-encoded certificate.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.