tlssetup

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurvePreferenceMap = map[string]tls.CurveID{
	"X25519":    tls.X25519,
	"CurveP256": tls.CurveP256,
	"CurveP384": tls.CurveP384,
	"CurveP521": tls.CurveP521,
}

CurvePreferenceMap is a list of supported ECC Curves, optimized for performance

Functions

func DefaultCipherSuites

func DefaultCipherSuites() []uint16

func DefaultCurvePreferences

func DefaultCurvePreferences() []tls.CurveID

DefaultCurvePreferences returns a sorted list of ECC curves, reordered to default to the highest level of security. See: https://blog.bracebin.com/achieving-perfect-ssl-labs-score-with-go

Types

type Config

type Config struct {
	// CipherSuites is the uint16 values from the crypto/tls library which CipherList is translated to
	CipherSuites []uint16

	// CurvePreferences is a list of curve preferences for ECC
	CurvePreferences []tls.CurveID
}

func TLSConfig

func TLSConfig(c *config.Config) *Config

Jump to

Keyboard shortcuts

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