Versions in this module Expand all Collapse all v0 v0.0.6 Aug 9, 2022 v0.0.5 Aug 9, 2022 v0.0.4 Aug 9, 2022 v0.0.3 Aug 9, 2022 v0.0.2 Apr 18, 2022 Changes in this version + var IntermediateStash string + func PemBlockToString(block *pem.Block) string + type Bundle struct + Cert *x509.Certificate + Chain []*x509.Certificate + Expires time.Time + Hostnames []string + Issuer *pkix.Name + Key interface{} + LeafExpires time.Time + Root *x509.Certificate + Status *BundleStatus + Subject *pkix.Name + func (b *Bundle) MarshalJSON() ([]byte, error) + type BundleFlavor string + const Force + const Optimal + const Ubiquitous + type BundleStatus struct + Code int + ExpiringSKIs []string + IsRebundled bool + Messages []string + Untrusted []string + type Bundler struct + IntermediatePool *x509.CertPool + KnownIssuers map[string]bool + RootPool *x509.CertPool + func NewBundler(caBundleFile, intBundleFile string, opt ...Option) (*Bundler, error) + func NewBundlerFromPEM(caBundlePEM, intBundlePEM []byte, opt ...Option) (*Bundler, error) + func (b *Bundler) Bundle(certs []*x509.Certificate, key crypto.Signer, flavor BundleFlavor) (*Bundle, error) + func (b *Bundler) BundleFromFile(bundleFile, keyFile string, flavor BundleFlavor, password string) (*Bundle, error) + func (b *Bundler) BundleFromPEMorDER(certsRaw, keyPEM []byte, flavor BundleFlavor, password string) (*Bundle, error) + func (b *Bundler) BundleFromRemote(serverName, ip string, flavor BundleFlavor) (*Bundle, error) + func (b *Bundler) VerifyOptions() x509.VerifyOptions + type Option func(*options) + func WithKeyUsages(usages ...x509.ExtKeyUsage) Option