encoding

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigEncodeCertificate

func ConfigEncodeCertificate(certificate *x509.Certificate) string

ConfigEncodeCertificate returns a X.509 certificate encoded for use in an IdentityConfig.

func ConfigEncodeCertificates

func ConfigEncodeCertificates(certificates []*x509.Certificate) string

ConfigEncodeCertificates returns X.509 certificates encoded for use in an IdentityConfig.

func ConfigEncodeKey

func ConfigEncodeKey(key *rsa.PrivateKey) string

ConfigEncodeKey returns an RSA key encoded for use in an IdentityConfig.

func PEMEncodeCertificate

func PEMEncodeCertificate(certificate *x509.Certificate) string

PEMEncodeCertificate returns the PEM encoded string for an X.509 certificate.

func PEMEncodeCertificates

func PEMEncodeCertificates(certificates []*x509.Certificate) []string

PEMEncodeCertificates returns the PEM encoded strings for an array of X.509 certificates.

func PEMEncodeKey

func PEMEncodeKey(key *rsa.PrivateKey) string

PEMEncodeKey returns the PEM encoded string for an RSA key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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