Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CipherSuites = []uint16{ tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, tls.TLS_RSA_WITH_AES_256_GCM_SHA384, tls.TLS_RSA_WITH_AES_128_GCM_SHA256, }
CipherSuites without known attacks or extreme CPU usage https://golang.org/src/crypto/tls/cipher_suites.go#L75
View Source
var Curves = []tls.CurveID{ tls.CurveP256, }
Curves without known attacks or extreme CPU usage https://golang.org/src/crypto/tls/common.go#L542
Functions ¶
func GetCertificate ¶
GetCertificate using autocert
func GetHTTPSServer ¶
GetHTTPSServer fully secured
func RunDemoHTTPSServer ¶
RunDemoHTTPSServer to demo a working example
func RunHTTPRedirectServer ¶
RunHTTPRedirectServer to send all HTTP traffic to HTTPS
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.