ca

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DisableEmbedCa, _ = strconv.ParseBool(os.Getenv("DISABLE_EMBED_CA"))
View Source
var DisableSystemCa, _ = strconv.ParseBool(os.Getenv("DISABLE_SYSTEM_CA"))

Functions

func AddCertificate

func AddCertificate(certificate string) error

func GetGlobalTLSConfig

func GetGlobalTLSConfig(tlsConfig *tls.Config) *tls.Config

func GetSpecifiedFingerprintTLSConfig

func GetSpecifiedFingerprintTLSConfig(tlsConfig *tls.Config, fingerprint string) (*tls.Config, error)

GetSpecifiedFingerprintTLSConfig specified fingerprint

func GetTLSConfig

func GetTLSConfig(tlsConfig *tls.Config, fingerprint string, customCA string, customCAString string) (*tls.Config, error)

GetTLSConfig specified fingerprint, customCA and customCAString

func ResetCertificate

func ResetCertificate()

Types

This section is empty.

Jump to

Keyboard shortcuts

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