certchainutil

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package certchainutil complements the certchain package.

Index

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

func ReadRawChainFile(filename string) (*certchain.RawChain, error)

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.

Jump to

Keyboard shortcuts

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