tlsers

package module
v0.0.0-...-75d4a6e Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: MIT Imports: 10 Imported by: 0

README

GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertFunc

func CertFunc(c Certer) func(*tls.ClientHelloInfo) (*tls.Certificate, error)

CertFunc returns a simple Func for use in the tls.Config.GetCertificate function.

Types

type Certer

type Certer interface {
	Cert(cn string) (*tls.Certificate, error)
}

A Certer is anything that can provision a *tls.Certificate for a common name.

type SelfSigner

type SelfSigner struct {
	// contains filtered or unexported fields
}

A SelfSigner returns certificates that are self-signed.

func (*SelfSigner) Cert

func (s *SelfSigner) Cert(cn string) (*tls.Certificate, error)

Jump to

Keyboard shortcuts

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