Documentation ¶
Index ¶
- func ExtractPublicKeyPem(privateKey *rsa.PrivateKey) (string, error)
- func MustReadPrivateKey(pem string) *rsa.PrivateKey
- func MustReadPrivateKeyBytes(pemBytes []byte) *rsa.PrivateKey
- func MustReadPublicKey(pem string) *rsa.PublicKey
- func MustReadPublicKeyBytes(pemBytes []byte) *rsa.PublicKey
- func MustReadX509CertificateBytes(pemBytes []byte) *x509.Certificate
- func ReadPrivateKey(pem string) (*rsa.PrivateKey, error)
- func ReadPrivateKeyBytes(pemBytes []byte) (*rsa.PrivateKey, error)
- func ReadPublicKey(pem string) (*rsa.PublicKey, error)
- func ReadPublicKeyBytes(pemBytes []byte) (*rsa.PublicKey, error)
- func ReadX509Certificate(pem string) (*x509.Certificate, error)
- func ReadX509CertificateBytes(pemBytes []byte) (*x509.Certificate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPublicKeyPem ¶
func ExtractPublicKeyPem(privateKey *rsa.PrivateKey) (string, error)
func MustReadPrivateKey ¶
func MustReadPrivateKey(pem string) *rsa.PrivateKey
func MustReadPrivateKeyBytes ¶
func MustReadPrivateKeyBytes(pemBytes []byte) *rsa.PrivateKey
func MustReadPublicKey ¶
func MustReadPublicKeyBytes ¶
func MustReadX509CertificateBytes ¶ added in v0.13.0
func MustReadX509CertificateBytes(pemBytes []byte) *x509.Certificate
func ReadPrivateKey ¶
func ReadPrivateKey(pem string) (*rsa.PrivateKey, error)
func ReadPrivateKeyBytes ¶
func ReadPrivateKeyBytes(pemBytes []byte) (*rsa.PrivateKey, error)
func ReadX509Certificate ¶ added in v0.13.0
func ReadX509Certificate(pem string) (*x509.Certificate, error)
func ReadX509CertificateBytes ¶ added in v0.13.0
func ReadX509CertificateBytes(pemBytes []byte) (*x509.Certificate, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.