certutil

package
v0.0.0-...-c39e8e5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: AGPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetFunc

type GetFunc func(hello *tls.ClientHelloInfo) (*tls.Certificate, error)

GetFunc is the function that gets TLS certificate based on the HelloInfo.

func WrapAutoCert

func WrapAutoCert(
	f GetFunc, manualCerts map[string]*tls.Certificate,
) GetFunc

WrapAutoCert wraps the GetCertificate function. The resulting function adds a small delay of several seconds for the first time a certificate is requested, so that newly issued certificates won't be rejected upright by strict browsers on failed SCT timestamps checking due to clock skews. Optinally, a map of manual certificates can be used for a set of domains.

Jump to

Keyboard shortcuts

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