encoding

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertBytesToX509Certificate added in v0.0.5

func CertBytesToX509Certificate(certBytes []byte) (cert []*x509.Certificate, err error)

CertBytesToX509Certificate converts a byte array to an X509 certificate, using PEM formatting.

func EncodeCertificateToPEM

func EncodeCertificateToPEM(certBytes []byte) ([]byte, error)

EncodeCertificateToPEM encodes a certificate to PEM format.

func EncodePrivateKeyToPEM

func EncodePrivateKeyToPEM(certBytes []byte) ([]byte, error)

EncodePrivateKeyToPEM encodes a private key to PEM format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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