tls

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ACL

func ACL(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)

ACL is handler for api server to pass acl of a request

func GenTLSConfig

func GenTLSConfig() (*tls.Config, error)

GenTLSConfig generate TLS configure.

func GetAdminCertSignatures

func GetAdminCertSignatures() []string

GetAdminCertSignatures Get the list of Certification Signature

func GetCertPool

func GetCertPool(cafile string) (*x509.CertPool, error)

GetCertPool Get Certification pool

func GetUserCertSignatures

func GetUserCertSignatures() []string

GetUserCertSignatures Get the list of Certification Signature

func InitCertSignatures

func InitCertSignatures() (err error)

InitCertSignatures Initialize the list of Certification Signature Should be called once.

func NewCertSignatures

func NewCertSignatures(admin bool) (signatures []string, err error)

NewCertSignatures Generate a list of Certification Signature

Types

This section is empty.

Jump to

Keyboard shortcuts

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