Documentation ¶
Index ¶
- Constants
- func GetNamesForCert(cert *bfe_tls.Certificate) []string
- func OcspResponseCheck(bytes []byte, cert bfe_tls.Certificate) (*ocsp.Response, error)
- func OcspResponseLoad(filename string) ([]byte, error)
- func ServerCertParse(certConf BfeServerCertConf) (map[string]*bfe_tls.Certificate, error)
- type BfeServerCertConf
- type ServerCertConf
- type ServerCertConfMap
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 OcspResponseLoad ¶
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) }
Click to show internal directories.
Click to hide internal directories.