tlsCertificateMgr

package
v0.0.0-...-97ce03a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type CertMgr

type CertMgr struct {
	ChainFileUrl    string
	KeyFileUrl      string
	ChainByte       []byte
	KeyByte         []byte
	CurrentCertHash uint32
}

func GetSingleInstance

func GetSingleInstance() *CertMgr

func (*CertMgr) CheckCertHash

func (c *CertMgr) CheckCertHash() (needUpdate bool, err error)

func (*CertMgr) GetAndParseCert

func (c *CertMgr) GetAndParseCert() error

func (*CertMgr) GetTlsCert

func (c *CertMgr) GetTlsCert() (chain []byte, key []byte)

Jump to

Keyboard shortcuts

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