net

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts NetCommandOptions) (int, error)

Run checks certificates.

Types

type ConnectionStateInfo added in v0.4.0

type ConnectionStateInfo struct {
	Certificates []*x509.Certificate
	OCSPResponse []byte
}

func (ConnectionStateInfo) IntermediateCertificates added in v0.4.0

func (i ConnectionStateInfo) IntermediateCertificates() []*x509.Certificate

func (ConnectionStateInfo) IssuerCertificate added in v0.4.0

func (i ConnectionStateInfo) IssuerCertificate() *x509.Certificate

func (ConnectionStateInfo) ServerCertificate added in v0.4.0

func (i ConnectionStateInfo) ServerCertificate() *x509.Certificate

type NetCommandOptions added in v0.9.0

type NetCommandOptions struct {
	Hostname         string
	Network          string
	IpAddress        string
	Port             uint16
	TLSMinVersion    uint16
	StartTLS         string
	OCSPOption       OCSPOption
	Timeout          int
	Warning          int
	Critical         int
	RootFile         string
	EnableSSLCertDir bool
	OutputFormat     checker.OutputFormat
}

type OCSPOption added in v0.4.0

type OCSPOption int
const (
	// Disable OCSP checker.
	OCSPNo OCSPOption = iota

	// Check the response from OCSP Stapling. If there is no OCSP response, the status will be "INFO".
	OCSPAsIs

	// Check the response from OCSP Stapling. If there is no OCSP response, retry the TLS connection up to two times every second. If there is still no OCSP response, the status will be "WARNING".
	OCSPStapling

	// Check the response from OCSP Responder.
	OCSPResponder

	// Check the response from OCSP Stapling. If there is no OCSP response, check the response from OCSP Responder.
	OCSPFallback
)

Jump to

Keyboard shortcuts

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