tls

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Host            string
	Success         bool
	Attempts        int
	Error           error
	Duration        time.Duration
	Subject         string
	Issuer          string
	ExpiresAt       time.Time
	DaysUntilExpiry int
	Protocol        string
	CipherSuite     string
}

Result holds TLS/SSL probe result

func Run

func Run(host string, maxAttempts int, timeout time.Duration) Result

Run performs TLS/SSL probe to the specified host. host specifies the target host (hostname:port, e.g., example.com:443). maxAttempts specifies the maximum number of attempts. timeout specifies the maximum duration to wait for a response. Returns a Result struct containing the TLS/SSL information.

Jump to

Keyboard shortcuts

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