Documentation ¶
Index ¶
- Variables
- func AddCertificate(certificate string) error
- func GetGlobalTLSConfig(tlsConfig *tls.Config) *tls.Config
- func GetSpecifiedFingerprintTLSConfig(tlsConfig *tls.Config, fingerprint string) (*tls.Config, error)
- func GetTLSConfig(tlsConfig *tls.Config, fingerprint string, customCA string, ...) (*tls.Config, error)
- func ResetCertificate()
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 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.
Click to show internal directories.
Click to hide internal directories.