core

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRLLocations

type CRLLocations struct {
	CRLDistributionPoints []string
	CRLUrl                string
	CRLFile               string
}

type CertificateChain

type CertificateChain struct {
	CertificateChainEntryList []CertificateChainEntry
}

func (*CertificateChain) AddCertificateChainEntry

func (c *CertificateChain) AddCertificateChainEntry(entry *CertificateChainEntry)

type CertificateChainEntry

type CertificateChainEntry struct {
	RawCertificate []byte
	Certificate    *x509.Certificate
}

func FindCertificateIssuerCandidates

func FindCertificateIssuerCandidates(issuer *pkix.RDNSequence, extensions *[]pkix.Extension, algorithmID x509.PublicKeyAlgorithm, chains *CertificateChains) ([]*CertificateChainEntry, error)

Implemenation according to rfc5280 section 5.2.1

type CertificateChains

type CertificateChains struct {
	CertificateChainList []CertificateChain
}

func NewCertificateChains

func NewCertificateChains(verifiedChains [][]*x509.Certificate, trustedSignerCerts []*x509.Certificate) *CertificateChains

func NewCertificateChainsFromEntry

func NewCertificateChainsFromEntry(chainEntry *CertificateChainEntry) *CertificateChains

func (*CertificateChains) AddCertificateChain

func (c *CertificateChains) AddCertificateChain(chain CertificateChain)

type RevocationStatus

type RevocationStatus struct {
	Revoked             bool
	CRLRevokedCertEntry *pkix.RevokedCertificate
	OcspResponse        *ocsp.Response
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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