cert

package
v0.0.0-...-9835270 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: AGPL-3.0, Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRLResponse

type CRLResponse struct {
	CrlBase64   string              `json:"crl"`
	CrlSnapshot map[string][]string `json:"crl_snapshot"`
}

type Cert

type Cert struct {
	Certs sync.Map
	// contains filtered or unexported fields
}

func NewCert

func NewCert(
	notaryEnable bool,
	notaryRootCAUrl, notaryCertUrl, notaryCRLUrl string,
	serverName []string,
	keyDB model.KeyDatabase,
) *Cert

func (*Cert) CheckCert

func (c *Cert) CheckCert(crl, certPem string) (bool, error)

func (*Cert) GetCerts

func (c *Cert) GetCerts() *sync.Map

func (*Cert) Load

func (c *Cert) Load() error

func (*Cert) ToCert

func (c *Cert) ToCert(pemCerts []byte) (*x509.Certificate, error)

Jump to

Keyboard shortcuts

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