cert

package
v0.0.0-...-08046e1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCertificateFromFiles

func GetCertificateFromFiles(
	ctx context.Context,
	certFile string,
	keyFile string,
) (*tls.Certificate, error)

GetCertificateFromFiles retrieves the certificate from the specified files.

func GetGetCertificate

func GetGetCertificate(
	ctx context.Context,
	host string,
	certFile string,
	keyFile string,
) func(*tls.ClientHelloInfo) (*tls.Certificate, error)

GetGetCertificate computes the GetCertificate function to serve TLS securily in production using LetsEncrypt and insecurely in QA using a self signed certificate.

func GetSelfSignedQACertificate

func GetSelfSignedQACertificate(
	ctx context.Context,
	host string,
) (*tls.Certificate, error)

GetSelfSignedQACertificate returns a self signed certificate for the host passed in QA. QA client do not verify certificates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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