tls

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

func GetCertificate() (*tls.Certificate, error)

GetCertificate using autocert

func GetCertificateAuthorities

func GetCertificateAuthorities() *x509.CertPool

func GetHTTPSServer

func GetHTTPSServer(servername string, addr string) (s *http.Server)

GetHTTPSServer fully secured

func TLSConfig

func TLSConfig(servername string) *tls.Config

TLSConfig for including autocert manager

Types

This section is empty.

Jump to

Keyboard shortcuts

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