certreloader

package
v0.0.0-...-38e557e Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Copyright 2016 Michael Stapelberg, BSD-3

https://stackoverflow.com/a/40883377/1210278

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertSource

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

func New

func New(certPath, keyPath string) (*CertSource, error)

Create a CertSource

func (*CertSource) AutoCheck

func (kpr *CertSource) AutoCheck(sig os.Signal)

Automatically reload certificate on the provided signal

func (*CertSource) Check

func (kpr *CertSource) Check() error

Check() can be called manually to reload the certificate

func (*CertSource) GetCertificateFunc

func (kpr *CertSource) GetCertificateFunc() func(*tls.ClientHelloInfo) (*tls.Certificate, error)

Returns a tls.Config.GetCertificate function.

Jump to

Keyboard shortcuts

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