modulepackage
0.0.0-20171004213447-cf35cfd0b1b4
Repository: https://github.com/getlantern/tlsdefaults.git
Documentation: pkg.go.dev
# README
tlsdefaults provides sensible defaults for using TLS with Go.
# Functions
BuildListenerConfig builds a tls.Config for a listener at the given addr.
Listen opens a TLS listener at the given address using the private key and certificate PEM files at the given paths.
NewListener creates a TLS listener based on the given listener using the private key and certificate PEM files at the given paths.
NewListenerAddr is like NewListener but uses the specified addr to generate the cert.
Server provides a tls.Config with sensible defaults for server use.
# Structs
CertContext encapsulates the certificates used by a Server.