certificates

package
v3.80.13 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFile

func FromFile(file string, opts ...FromFileOption) ([]*x509.Certificate, error)

FromFile reads and parses pem-encoded certificate(s) from file.

func FromPem

func FromPem(bytes []byte, opts ...FromPemOption) (certs []*x509.Certificate, err error)

FromPem parses one or more certificate from pem blocks in bytes. It returns nil error if at least one certificate was successfully parsed. This function uses cached parseCertificate.

Types

type FromFileOption

type FromFileOption func(opts *fromFileOptions)

func FromFileOnHit

func FromFileOnHit(onHit func()) FromFileOption

func FromFileOnMiss

func FromFileOnMiss(onMiss func()) FromFileOption

type FromPemOption

type FromPemOption func(opts *fromPemOptions)

func FromPemMiss

func FromPemMiss(onMiss func()) FromPemOption

func FromPemNoCache

func FromPemNoCache(noCache bool) FromPemOption

func FromPemOnHit

func FromPemOnHit(onHit func()) FromPemOption

Jump to

Keyboard shortcuts

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