certstore

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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

func NormalizeThumbprint(s string) string

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.

Jump to

Keyboard shortcuts

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