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
Click to show internal directories.
Click to hide internal directories.