encoding

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 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) ([]*x509.Certificate, 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(keyBytes []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