Documentation
¶
Overview ¶
tlsbuilder package was based on the tls package in runme.dev It was modified to generate certificates suitable for server encryption. The runme package is generating certificates for mutual TLs.
Index ¶
- Constants
- func LoadClientConfig(certFile, keyFile string) (*tls.Config, error)
- func LoadClientConfigFromDir(dir string) (*tls.Config, error)deprecated
- func LoadOrGenerateConfig(certFile, keyFile string, logger *zap.Logger) (*tls.Config, error)
- func LoadOrGenerateConfigFromDir(dir string, logger *zap.Logger) (*tls.Config, error)deprecated
- func LoadServerConfig(certFile, keyFile string) (*tls.Config, error)
Constants ¶
View Source
const ( CertPEMFile = "cert.pem" // deprecated KeyPEMFile = "key.pem" // deprecated )
Variables ¶
This section is empty.
Functions ¶
func LoadClientConfigFromDir
deprecated
func LoadOrGenerateConfig ¶
LoadOrGenerateConfig loads the TLS configuration from the given files, or generates a new one if the files do not exist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.