Documentation ¶
Index ¶
Constants ¶
View Source
const ( MICROSOFT = "microsoft" MOZILLA_NSS = "mozilla_nss" OPENJDK = "openjdk" )
View Source
const ( MozillaIncludedCACertificateReportCSV = "https://ccadb-public.secure.force.com/mozilla/IncludedCACertificateReportCSVFormat" MozillaRemovedCACertificateReportCSV = "https://ccadb-public.secure.force.com/mozilla/RemovedCACertificateReportCSVFormat" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CTL ¶
type Cert ¶
type Cert struct { *x509.Certificate Checksum string }
Cert adds Checksum field to x509.Cerificate to store SHA256
type CertStore ¶
type CertStore struct { Certs []*Cert // contains filtered or unexported fields }
CertStore is a set of certificates.
func LoadSystemRoots ¶
func (*CertStore) AddCert ¶
func (s *CertStore) AddCert(cert *x509.Certificate)
AddCert adds a certificate to CertStore.
func (*CertStore) AppendCertsFromPEM ¶
AppendCertsFromPEM attempts to parse a series of PEM encoded certificates. It appends any certificates found to s and reports whether any certificates were successfully parsed.
On many Linux systems, /etc/ssl/cert.pem will contain the system wide set of root CAs in a format suitable for this function.
type MozillaCTL ¶
type MozillaCTL struct { *CTL `yaml:",inline"` URLIncluded string `yaml:"url_included,omitempty"` ChecksumIncluded string `yaml:"checksum_included,omitempty"` URLRemoved string `yaml:"url_removed,omitempty"` ChecksumRemoved string `yaml:"checksum_removed,omitempty"` }
func NewMozillaCTL ¶
func NewMozillaCTL() *MozillaCTL
func (*MozillaCTL) FetchMozilla ¶
func (ctl *MozillaCTL) FetchMozilla() error
Fetch Mozilla's CA certificate report from https://www.ccadb.org
Click to show internal directories.
Click to hide internal directories.