tlsutil

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertToStr

func CertToStr(cert *x509.Certificate, withHeader bool) string

func DecodeAllByType added in v0.14.7

func DecodeAllByType(typ string, bytes []byte) ([]*x509.Certificate, error)

func DecodeAllCerts added in v0.14.7

func DecodeAllCerts(bytes []byte) ([]*x509.Certificate, error)

func LogCert added in v0.14.4

func LogCert(logger *slog.Logger, name string, cert *x509.Certificate)

func LogCerts added in v0.14.4

func LogCerts(logger *slog.Logger, certs ...*x509.Certificate)

func MakeCertPool added in v0.12.5

func MakeCertPool(certs ...*x509.Certificate) *x509.CertPool

func MakeP12TrustStore added in v0.12.5

func MakeP12TrustStore(certs map[string]*x509.Certificate, passwd string) ([]byte, error)

func ParseBlock added in v0.14.7

func ParseBlock(b []byte, typ string) *pem.Block

func ParseCert

func ParseCert(s string) (*x509.Certificate, error)

func ParseCsr

func ParseCsr(b []byte) (*x509.CertificateRequest, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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