Documentation ¶
Overview ¶
Package tlsdefaults provides sensible defaults for using TLS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Listen ¶
Listen opens a TLS listener at the given address using the private key and certificate PEM files at the given paths. If no files exists, it creates a new key and self-signed certificate at those locations.
func NewListener ¶
NewListener creates a TLS listener based on the given listener using the private key and certificate PEM files at the given paths. If no files exists, it creates a new key and self-signed certificate at those locations.
Types ¶
type CertContext ¶
type CertContext struct { PKFile string ServerCertFile string PK *keyman.PrivateKey ServerCert *keyman.Certificate }
CertContext encapsulates the certificates used by a Server
Click to show internal directories.
Click to hide internal directories.