ssl

package
v0.0.0-...-7f974c4 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Expired ExpirationStatus = "Expired"
	Warn                     = "Warn"
	Alert                    = "Alert"
	Valid                    = "Valid"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateStatusResult

type CertificateStatusResult struct {
	Host     string
	Port     string
	Subject  string
	Ca       bool
	Days     int
	NotAfter time.Time
	Status   ExpirationStatus
	Err      error
}

CertificateStatusResult ...

type ExpirationStatus

type ExpirationStatus string

ExpirationStatus ... Enum type

type SSLConnect

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

SSLConnect ...

func NewSSLConnect

func NewSSLConnect(warnDays, alertDays int, wg *sync.WaitGroup, wp *workerpool.WorkerPool, r chan<- CertificateStatusResult) *SSLConnect

NewSSLConnect ...

func (*SSLConnect) Connect

func (sc *SSLConnect) Connect(h SSLHost)

Connect ... Connects to the SSL host

type SSLHost

type SSLHost struct {
	Host string
	Port string
}

SSLHost ...

Jump to

Keyboard shortcuts

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