server_cert_conf

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultCert = "BFE_DEFAULT_CERT"
)

Variables

This section is empty.

Functions

func GetNamesForCert

func GetNamesForCert(cert *bfe_tls.Certificate) []string

GetNamesForCert returns all subject names of cert.

func OcspResponseCheck

func OcspResponseCheck(bytes []byte, cert bfe_tls.Certificate) (*ocsp.Response, error)

func OcspResponseLoad

func OcspResponseLoad(filename string) ([]byte, error)

func ServerCertParse

func ServerCertParse(certConf BfeServerCertConf) (map[string]*bfe_tls.Certificate, error)

Types

type BfeServerCertConf

type BfeServerCertConf struct {
	Version string // version of config
	Config  ServerCertConfMap
}

BfeServerCertConf is conf of all bfe certificate

func ServerCertConfLoad

func ServerCertConfLoad(filename string, confRoot string) (BfeServerCertConf, error)

ServerCertConfLoad loads config of certificate from file.

func (*BfeServerCertConf) Check

func (conf *BfeServerCertConf) Check(confRoot string) error

BfeServerCertConfCheck check integrity of config.

type ServerCertConf

type ServerCertConf struct {
	ServerCertFile   string // path to server certificate
	ServerKeyFile    string // path to server priavet key
	OcspResponseFile string // path to ocsp response file
}

ServerCertConf is conf of certificate

func (*ServerCertConf) Check

func (conf *ServerCertConf) Check(confRoot string) error

ServerCertConfCheck check ServerCertConf config.

type ServerCertConfMap

type ServerCertConfMap struct {
	Default  string                    // default cert name
	CertConf map[string]ServerCertConf // (cert name, cert config)
}

Jump to

Keyboard shortcuts

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