Documentation ¶
Overview ¶
Package certchainutil complements the certchain package.
Index ¶
- func FetchAugmentedChain(url *url.URL) (*certchain.AugmentedChain, error)
- func ReadAugmentedChainFile(filename string) (*certchain.AugmentedChain, error)
- func ReadCertificateRequestFile(filename string) (*x509.CertificateRequest, error)
- func ReadOCSPRespFile(filename string) (*certchain.OCSPResponse, error)
- func ReadPrivateKeyFile(filename string) (crypto.PrivateKey, error)
- func ReadRawChainFile(filename string) (*certchain.RawChain, error)
- func WrapToCertFetcher(c *certchain.AugmentedChain) signedexchange.CertFetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchAugmentedChain ¶
func FetchAugmentedChain(url *url.URL) (*certchain.AugmentedChain, error)
FetchAugmentedChain retrieves an AugmentedChain from url.
func ReadAugmentedChainFile ¶
func ReadAugmentedChainFile(filename string) (*certchain.AugmentedChain, error)
ReadAugmentedChainFile reads an application/cert-chain+cbor file to retrieve an AugmentedChain.
func ReadCertificateRequestFile ¶
func ReadCertificateRequestFile(filename string) (*x509.CertificateRequest, error)
ReadCertificateRequestFile reads a PEM file and returns a Certificate Request.
func ReadOCSPRespFile ¶
func ReadOCSPRespFile(filename string) (*certchain.OCSPResponse, error)
ReadOCSPRespFile reads a DER file to retrieve an OCSPResponse, using certchain.ParseOCSPResponse.
func ReadPrivateKeyFile ¶
func ReadPrivateKeyFile(filename string) (crypto.PrivateKey, error)
ReadPrivateKeyFile reads a PEM file and returns a PrivateKey usable for signing exchanges.
func ReadRawChainFile ¶
ReadRawChainFile reads a PEM file to retrieve a RawChain.
func WrapToCertFetcher ¶
func WrapToCertFetcher(c *certchain.AugmentedChain) signedexchange.CertFetcher
WrapToCertFetcher wraps an AugmentedChain into a signedexchange.CertFetcher. The CertFetcher does not inspect the url argument.
Types ¶
This section is empty.