customtls

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomLoadX509KeyPair

func CustomLoadX509KeyPair(certFile, keyFile string) (tls.Certificate, error)

CustomLoadX509KeyPair reads and parses a public/private key pair from a pair of files. The files must contain PEM encoded data. The certificate file may contain intermediate certificates following the leaf certificate to form a certificate chain. On successful return, Certificate.Leaf will be nil because the parsed form of the certificate is not retained.

func CustomX509Cert

func CustomX509Cert(certFile string) (tls.Certificate, error)

CustomX509Cert parse cert only

func CustomX509KeyPair

func CustomX509KeyPair(certPEMBlock, keyPEMBlock []byte) (tls.Certificate, error)

CustomX509KeyPair parses a public/private key pair from a pair of PEM encoded data. On successful return, Certificate.Leaf will be nil because the parsed form of the certificate is not retained.

Types

This section is empty.

Jump to

Keyboard shortcuts

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