tlssupport

package
v0.0.0-...-23d3adf Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCert

func LoadCert(path string) (tls.Certificate, error)

func LoadPrivateKey

func LoadPrivateKey(path string) (crypto.PrivateKey, error)

func MakeKeylessClientCertAndPriKey

func MakeKeylessClientCertAndPriKey(cert *tls.Certificate, keylessServer *upstream.Upstream) (*tls.Certificate, crypto.PrivateKey)

func MakeKeylessServerCertAndPriKey

func MakeKeylessServerCertAndPriKey(cert *tls.Certificate, prikey crypto.PrivateKey) (*tls.Certificate, crypto.PrivateKey)

func MakeLocalCertAndPriKey

func MakeLocalCertAndPriKey(cert *tls.Certificate, prikey crypto.PrivateKey) (*tls.Certificate, crypto.PrivateKey)

func ToHashFunc

func ToHashFunc(hash string) crypto.Hash

Types

type CertManager

type CertManager struct {
	Certs           map[string]*tls.Certificate
	ParentTlsConfig *tls.Config
}

func (*CertManager) FillCerts

func (this *CertManager) FillCerts(certs map[string]*tls.Certificate)

func (*CertManager) GetCertificate

func (this *CertManager) GetCertificate(c *tls.ClientHelloInfo) (*tls.Certificate, error)

func (*CertManager) GetConfigForClient

func (this *CertManager) GetConfigForClient(c *tls.ClientHelloInfo) (*tls.Config, error)

type CipherSuite

type CipherSuite struct {
	Code uint16
}

Jump to

Keyboard shortcuts

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