Documentation ¶
Index ¶
- func DecodeCert(pemCert []byte) (*x509.Certificate, error)
- func DecodeCertRequest(encodedCertRequest []byte) (*x509.CertificateRequest, error)
- func DecodeKey(encodedKey []byte) (*rsa.PrivateKey, error)
- func EncodeCert(cert *x509.Certificate) []byte
- func EncodeKey(key *rsa.PrivateKey) []byte
- func EncodePublicKey(key interface{}) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeCert ¶
func DecodeCert(pemCert []byte) (*x509.Certificate, error)
DecodeCert return the decoded certificate of given encodedCert
func DecodeCertRequest ¶
func DecodeCertRequest(encodedCertRequest []byte) (*x509.CertificateRequest, error)
DecodeCert return the decoded csr of given encodedCertRequest
func DecodeKey ¶
func DecodeKey(encodedKey []byte) (*rsa.PrivateKey, error)
DecodeKey returns the decoded private key of given encodedKey
func EncodeCert ¶
func EncodeCert(cert *x509.Certificate) []byte
EncodeCert returns PEM encoding of given cert
func EncodeKey ¶
func EncodeKey(key *rsa.PrivateKey) []byte
EncodeKey returns PEM encoding of give private key
func EncodePublicKey ¶
EncodePublicKey returns PEM encoding of given public key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.