tlscheck

package
v0.0.0-...-654f0e1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCertificate

func GetCertificate(addr string, tlsConfig *tls.Config) (*x509.Certificate, error)

Types

type CertChecker

type CertChecker interface {
	DaysUntilExpiry(string, *tls.Config) (float64, error)
	CertificateAuthority(string, *tls.Config) (string, error)
}

type TLSChecker

type TLSChecker struct{}

func (*TLSChecker) CertificateAuthority

func (tc *TLSChecker) CertificateAuthority(addr string, tlsConfig *tls.Config) (string, error)

func (*TLSChecker) DaysUntilExpiry

func (tc *TLSChecker) DaysUntilExpiry(addr string, tlsConfig *tls.Config) (float64, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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