Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Ciphers = []uint16{ tls.TLS_AES_256_GCM_SHA384, tls.TLS_AES_128_GCM_SHA256, tls.TLS_CHACHA20_POLY1305_SHA256, tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305, tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, }
Ciphers is a list of safe-to-use ciphers.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct { Cert string `json:"cert" yaml:"cert"` Key string `json:"key" yaml:"key"` UseTLS bool `json:"useTLS" yaml:"useTLS"` TLSConfig *tls.Config }
func Default ¶
func Default() (*Certificate, error)
func New ¶
func New(minVersion uint16, clientAuthType tls.ClientAuthType, tlsFlagEnv, certEnv, keyEnv string) (*Certificate, error)
Click to show internal directories.
Click to hide internal directories.