verify

package
v0.0.0-...-b2d1a69 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCertExpired           = errors.New("certificate expired")
	ErrNotMatchedFingerprint = errors.New("not matched fingerprint")
)

Functions

func DNSName

func DNSName(dnsName string) tlsVerifyPeerCertificateOption

func FingerprintSHA1

func FingerprintSHA1(sha1hex string) tlsVerifyPeerCertificateOption

func HttpClient

func HttpClient(opts ...tlsVerifyPeerCertificateOption) *http.Client

func SkipTLSVerify

func SkipTLSVerify() tlsVerifyPeerCertificateOption

func TLSVerifyPeerCertificate

func TLSVerifyPeerCertificate(opts ...tlsVerifyPeerCertificateOption) *tlsVerifyPeerCertificate

func TLSVerifyPeerCertificateWithContext

func TLSVerifyPeerCertificateWithContext(ctx context.Context, opts ...tlsVerifyPeerCertificateOption) (*tlsVerifyPeerCertificate, context.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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