load

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNeedPassword = errors.New("need password to decode file")

Functions

func BytesFromFileOrEnv

func BytesFromFileOrEnv(path string) ([]byte, error)

func Certificates

func Certificates(path string) ([]*x509.Certificate, error)

func CertificatesFromPEM

func CertificatesFromPEM(pemBytes []byte) ([]*x509.Certificate, error)

func CertificatesFromPEMs

func CertificatesFromPEMs(pems [][]byte) ([]*x509.Certificate, error)

func PrivateKey

func PrivateKey(path string, password string) (crypto.PrivateKey, error)

Types

type P12Contents

type P12Contents struct {
	PrivateKey   crypto.PrivateKey
	Certificate  *x509.Certificate
	Certificates []*x509.Certificate
}

func P12

func P12(path, password string) (*P12Contents, error)

Jump to

Keyboard shortcuts

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