cryptoutil

package
v1.0.0-alpha-1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCertificatePEM

func ParseCertificatePEM(data []byte) ([]*x509.Certificate, error)

ParseCertificatePEM parses a certificate PEM.

func ParsePrivateKeyPEM

func ParsePrivateKeyPEM(data []byte) (crypto.PrivateKey, error)

ParsePrivateKeyPEM parses a PEM as a signing key.

func ReadCertificateFile

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

ReadCertificateFile reads a certificate PEM file.

func ReadPrivateKeyFile

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

ReadPrivateKeyFile reads a key PEM file as a signing key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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