tlsutil

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2018 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientTLSConfigFromFile

func NewClientTLSConfigFromFile(certFile, keyFile, caCertFile, tlsServerName string) (*tls.Config, error)

func NewClientTLSConfigFromString

func NewClientTLSConfigFromString(certData, keyData, caCertData, tlsServerName string) (*tls.Config, error)

func NewServerTLSConfigFromFile

func NewServerTLSConfigFromFile(server_crt, server_key, ca_crt string) (*tls.Config, error)

func NewServerTLSConfigFromString

func NewServerTLSConfigFromString(certData, keyData, caCertData string) (*tls.Config, error)

func NewTLSConfigFromFile

func NewTLSConfigFromFile(certFile, keyFile string) (*tls.Config, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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