tls

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateInfo

type CertificateInfo struct {
	Subject   string
	Issuer    string
	NotBefore time.Time
	NotAfter  time.Time
	DNSNames  []string
}

CertificateInfo contains information about a parsed TLS certificate

func ParseTLSCertificate

func ParseTLSCertificate(certPEM, keyPEM []byte) (*CertificateInfo, error)

ParseTLSCertificate parses and validates a TLS certificate from PEM-encoded cert and key data

Jump to

Keyboard shortcuts

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