checkssl

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RETURNCODE_PASS          = 0
	RETURNCODE_EXPIRED       = 2
	RETURNCODE_THRESHOLDFAIL = 3
	RETURNCODE_NOTVALIDYET   = 4
	RETURNCODE_ERROR         = 5
)

Variables

This section is empty.

Functions

func CsvHeaderRow added in v0.5.0

func CsvHeaderRow() string

Types

type CheckCert

type CheckCert struct {
	CommonName             string
	IsCertificateAuthority bool
	ValidNotBefore         time.Time
	ValidNotAfter          time.Time
	IsInvalid              bool
}

type CheckedServer

type CheckedServer struct {
	Target       string
	Err          string
	ExitCode     int
	ServerInfo   string
	Certs        []CheckCert
	Passed       bool
	HttpVersion  string
	TlsVersion   uint16
	TlsAlgorithm uint16
	ServerName   string
	IpAddress    string
}

func CheckServer

func CheckServer(target string, dateNeededValidFor time.Time, insecure bool) (output CheckedServer)

func (CheckedServer) AsCsv added in v0.5.0

func (a CheckedServer) AsCsv() string

func (CheckedServer) AsJson

func (a CheckedServer) AsJson() string

func (CheckedServer) AsShortString added in v0.5.1

func (a CheckedServer) AsShortString(enableColors bool) (output string)

func (CheckedServer) AsString

func (a CheckedServer) AsString(enableColors bool) (output string)

type OutputFormat added in v0.5.1

type OutputFormat int64
const (
	JSON OutputFormat = iota
	CSV
	TEXT
	NONE
	SHORT
)

func (OutputFormat) String added in v0.5.1

func (a OutputFormat) String() string

Jump to

Keyboard shortcuts

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