Documentation ¶
Index ¶
- Variables
- func EncodePrivateKeyPKCS8PEM(key any) (pem []byte, err error)
- func EncodeRSAPrivateKeyPKCS1PEM(key *rsa.PrivateKey) []byte
- func EncodeX509CertificatePEM(cert *x509.Certificate) []byte
- func ParseRSAPrivateKeyPEM(pem []byte) (key *rsa.PrivateKey, err error)
- func ParseX509CertificateAuto(certBytes []byte) (cert *x509.Certificate, err error)
- func ParseX509CertificatePEM(pem []byte) (cert *x509.Certificate, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidFormat = errors.New("invalid format")
Functions ¶
func EncodeRSAPrivateKeyPKCS1PEM ¶
func EncodeRSAPrivateKeyPKCS1PEM(key *rsa.PrivateKey) []byte
func EncodeX509CertificatePEM ¶
func EncodeX509CertificatePEM(cert *x509.Certificate) []byte
func ParseRSAPrivateKeyPEM ¶
func ParseRSAPrivateKeyPEM(pem []byte) (key *rsa.PrivateKey, err error)
func ParseX509CertificateAuto ¶
func ParseX509CertificateAuto(certBytes []byte) (cert *x509.Certificate, err error)
func ParseX509CertificatePEM ¶
func ParseX509CertificatePEM(pem []byte) (cert *x509.Certificate, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.