Documentation ¶
Index ¶
- func Load(cert, key []byte, passphrase string) (CAcrt *x509.Certificate, CAkey *rsa.PrivateKey, err error)
- func PEMEncode(crt *x509.Certificate) []byte
- func PEMEncodeRSAPrivateKey(key *rsa.PrivateKey) []byte
- func WriteCert(crt *x509.Certificate, w io.Writer) error
- func WriteCertFile(crt *x509.Certificate, out string) error
- func WriteKey(key *rsa.PrivateKey, w io.Writer) error
- func WriteKeyFile(key *rsa.PrivateKey, out string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(cert, key []byte, passphrase string) (CAcrt *x509.Certificate, CAkey *rsa.PrivateKey, err error)
Load certificate and key from PEM encoded bytes
func PEMEncode ¶
func PEMEncode(crt *x509.Certificate) []byte
func PEMEncodeRSAPrivateKey ¶
func PEMEncodeRSAPrivateKey(key *rsa.PrivateKey) []byte
func WriteCertFile ¶
func WriteCertFile(crt *x509.Certificate, out string) error
func WriteKeyFile ¶
func WriteKeyFile(key *rsa.PrivateKey, out string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.