encode

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RSAPrivateKeyBlockType is a possible value for pem.Block.Type.
	RSAPrivateKeyBlockType = "RSA PRIVATE KEY"
	// CertificateBlockType is a possible value for pem.Block.Type.
	CertificateBlockType = "CERTIFICATE"
)

Variables

This section is empty.

Functions

func CertPEM

func CertPEM(cert *x509.Certificate) []byte

CertPEM returns PEM-encoded certificate data

func PrivateKeyPEM

func PrivateKeyPEM(key *rsa.PrivateKey) []byte

PrivateKeyPEM returns PEM-encoded private key data

Types

This section is empty.

Jump to

Keyboard shortcuts

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