Documentation ¶
Index ¶
- Constants
- func ForeachPemBlock(pemText []byte, f func(*pem.Block) error) error
- func MarshalCertificateDer(certDer []byte) []byte
- func MarshalPrivateKey(priv crypto.PrivateKey) ([]byte, error)
- func ParseCertificates(pemText []byte) ([]*x509.Certificate, error)
- func ParsePrivateKey(pemText []byte) (crypto.PrivateKey, error)
Constants ¶
View Source
const ( RSAPrivateKeyPemType = "RSA PRIVATE KEY" ECPrivateKeyPemType = "EC PRIVATE KEY" CertificatePemType = "CERTIFICATE" PublicKeyPemType = "PUBLIC KEY" )
Variables ¶
This section is empty.
Functions ¶
func MarshalCertificateDer ¶
func MarshalPrivateKey ¶
func MarshalPrivateKey(priv crypto.PrivateKey) ([]byte, error)
func ParseCertificates ¶
func ParseCertificates(pemText []byte) ([]*x509.Certificate, error)
func ParsePrivateKey ¶
func ParsePrivateKey(pemText []byte) (crypto.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.