pemutil

package
v2.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnexpectedBlockType = errors.New("block does not contain expected type")

Functions

func EncodeCertificates

func EncodeCertificates(certificates []*x509.Certificate) []byte

func EncodePKCS8PrivateKey

func EncodePKCS8PrivateKey(privateKey interface{}) ([]byte, error)

func ParseCertificates

func ParseCertificates(certsBytes []byte) ([]*x509.Certificate, error)

func ParsePrivateKey

func ParsePrivateKey(keyBytes []byte) (crypto.PrivateKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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