certharvest

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServerCertificates

func GetServerCertificates(config Config, urls ...string) <-chan CertificatesOrError

GetServerCertificates gets the certificate chain associated with a URL This is non-blocking. Use the blocking version GetServerCertificatesBlocking if suitable

Types

type CertificatesOrError

type CertificatesOrError struct {
	URL              string
	CertificateChain []*x509.Certificate
	Error            error
}

CertificatesOrError contains the certificate chain associated with a URL, or error if there was a problem

func GetServerCertificatesBlocking

func GetServerCertificatesBlocking(config Config, urls ...string) (out []CertificatesOrError)

GetServerCertificatesBlocking gets the certificate chain associated with a URL

type Config

type Config struct {
	//Timeout fir the HTTP client connection
	TimeOut time.Duration
}

Config is the configuration for harvesting certificates

Jump to

Keyboard shortcuts

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