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.
Click to show internal directories.
Click to hide internal directories.