tlsutil

package
v0.72.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package tlsutil provides centralized TLS configuration for trusting specific domains

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTLSConfig

func GetTLSConfig() *tls.Config

GetTLSConfig returns a TLS config with appropriate verification settings

func GetTrustedDomains

func GetTrustedDomains() []string

GetTrustedDomains returns the list of domains to skip TLS verification for

func NewHTTPClient

func NewHTTPClient(timeout time.Duration) *http.Client

NewHTTPClient creates an HTTP client with TLS verification for trusted domains

func NewHTTPClientForDomain

func NewHTTPClientForDomain(timeout time.Duration, hostname string) *http.Client

NewHTTPClientForDomain creates an HTTP client configured for a specific domain

func ShouldSkipTLSVerify

func ShouldSkipTLSVerify(domain string) bool

ShouldSkipTLSVerify checks if TLS verification should be skipped for this domain

Types

This section is empty.

Jump to

Keyboard shortcuts

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