certificate

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCertificateInfo

func GetCertificateInfo(ip string, host string, timeout int, port int, output string) error

Types

type Certificate

type Certificate struct {
	DnsResolvedTo string
	Subject       pkix.Name
	IssuerName    pkix.Name
	DNSNames      []string
	StartDate     string
	ExpireDate    string
	PubAlgorithm  string
	SigAlgorithm  string
}

type CertificateInfo added in v0.4.0

type CertificateInfo struct {
	Subject            string
	Issuer             string
	NotBefore          time.Time
	NotAfter           time.Time
	SignatureAlgorithm string
	PublicKeyAlgorithm string
}

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

func SetTransport

func SetTransport(host, ip string, timeout, port int) *Connection

Jump to

Keyboard shortcuts

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