Documentation ¶
Index ¶
- func CertToStr(cert *x509.Certificate, withHeader bool) string
- func DecodeAllByType(typ string, bytes []byte) ([]*x509.Certificate, error)
- func DecodeAllCerts(bytes []byte) ([]*x509.Certificate, error)
- func LogCert(logger *slog.Logger, name string, cert *x509.Certificate)
- func LogCerts(logger *slog.Logger, certs ...*x509.Certificate)
- func MakeCertPool(certs ...*x509.Certificate) *x509.CertPool
- func MakeP12TrustStore(certs map[string]*x509.Certificate, passwd string) ([]byte, error)
- func ParseBlock(b []byte, typ string) *pem.Block
- func ParseCert(s string) (*x509.Certificate, error)
- func ParseCsr(b []byte) (*x509.CertificateRequest, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 MakeCertPool ¶ added in v0.12.5
func MakeCertPool(certs ...*x509.Certificate) *x509.CertPool
func MakeP12TrustStore ¶ added in v0.12.5
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.