certmgr

package
v0.0.0-...-9d84085 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateManager

type CertificateManager interface {
	GetCertificate(sni string) (*tls.Certificate, error)
}

CertificateManager represents the certificate-management functionality required of a multiple-host proxy

type FileSystemCertificateManager

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

FileSystemCertificateManager is an implementation of the CertificateManager iface that gets certificates from disk

func NewFileSystemCertificateManager

func NewFileSystemCertificateManager(certPathFmt, keyPathFmt string) *FileSystemCertificateManager

NewFileSystemCertificateManager is the FileSystemCertificateManager constructor

func (*FileSystemCertificateManager) GetCertificate

func (fs *FileSystemCertificateManager) GetCertificate(sni string) (*tls.Certificate, error)

GetCertificate returns the *tls.Certificate for a given SNI

Jump to

Keyboard shortcuts

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