Documentation
¶
Overview ¶
Package tlsconfig loads configured transport trust and certificate material, preserving renewal callbacks and explicit TLS validation failures. It does not choose endpoints, credentials, HTTP budgets or retry policy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientTLSFromEnv ¶
ClientTLSFromEnv configures an authenticated encrypted transport. Supplying any TLS file enables TLS; an explicit false flag cannot silently ignore it. Paths are administrator configuration, never caller-controlled request data.
func HTTPServerTLSFromEnv ¶
HTTPServerTLSFromEnv validates the complete serving configuration before a listener opens. A nil result is the explicit development/plain-HTTP mode.
func ListenAndServeHTTP ¶
ListenAndServeHTTP honors the service's explicit HTTPS configuration and never falls back to cleartext when configured TLS material is missing or invalid.
Types ¶
This section is empty.