ssl

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FDFromTLSConn added in v1.2.0

func FDFromTLSConn(conn *tls.Conn) uintptr

func NewClientTlsConfig

func NewClientTlsConfig(ca, cert, key string, ciphers string) (tlsConfig *tls.Config, err error)

func NewServerTlsConfig

func NewServerTlsConfig(ca, cert, key string, verifyClient bool, ciphers string) (tlsConfig *tls.Config, err error)

func ReadPEMData

func ReadPEMData(pemFile string, pemPass []byte) ([]byte, error)

ReadPEMData Read a PEM file and ask for a password to decrypt it if needed

Types

This section is empty.

Jump to

Keyboard shortcuts

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