utils

package
v0.0.0-...-0f21099 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertReqFunc

func CertReqFunc(certfile, keyfile string) func(*tls.ClientHelloInfo) (*tls.Certificate, error)

CertReqFunc returns a function for tlsConfig.GetCertificate

func CertificateChains

func CertificateChains(rawCerts [][]byte, chains [][]*x509.Certificate) error

CertificateChains prints information about verified certificate chains

func CertificateInfo

func CertificateInfo(cert *x509.Certificate) string

CertificateInfo returns a string describing the certificate

func ClientCertReqFunc

func ClientCertReqFunc(certfile, keyfile string) func(*tls.CertificateRequestInfo) (*tls.Certificate, error)

ClientCertReqFunc returns a function for tlsConfig.GetClientCertificate

func OutputPEMFile

func OutputPEMFile(filename string) error

OutputPEMFile reads info from a PEM file and displays it

func Wait

func Wait()

Wait holds up proceedings until the user presses return

Types

This section is empty.

Jump to

Keyboard shortcuts

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