tlsconfig

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildServerTLSConfig

func BuildServerTLSConfig(minVersionFlag, cipherSuitesFlag string) (*tls.Config, string, error)

BuildServerTLSConfig builds a tls.Config for serving HTTPS.

Defaults:

  • Minimum TLS version is TLS 1.2.
  • Cipher suites and curve preferences are left unset to allow Go defaults (including TLS 1.3 cipher negotiation and updated curve defaults).

Flags: - minVersionFlag accepts: VersionTLS10|VersionTLS11|VersionTLS12|VersionTLS13 - cipherSuitesFlag is a comma-separated list of Go cipher suite names (TLS 1.2 only).

Returns (cfg, warning, err). A warning is returned when cipher suites are provided but ignored due to TLS 1.3 minimum.

Types

This section is empty.

Jump to

Keyboard shortcuts

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