Documentation ¶
Index ¶
- Variables
- func EncodeCertificate(cert *x509.Certificate) []byte
- func EncodeCertificates(certs []*x509.Certificate) []byte
- func EncodePKCS8PrivateKey(privateKey interface{}) ([]byte, error)
- func LoadCertificate(path string) (*x509.Certificate, error)
- func LoadCertificateRequest(path string) (*x509.CertificateRequest, error)
- func LoadCertificates(path string) (certs []*x509.Certificate, err error)
- func LoadECPrivateKey(path string) (*ecdsa.PrivateKey, error)
- func LoadPrivateKey(path string) (crypto.PrivateKey, error)
- func LoadPublicKey(path string) (crypto.PublicKey, error)
- func LoadRSAPrivateKey(path string) (*rsa.PrivateKey, error)
- func LoadSigner(path string) (crypto.Signer, error)
- func ParseCertificate(pemBytes []byte) (*x509.Certificate, error)
- func ParseCertificateRequest(pemBytes []byte) (*x509.CertificateRequest, error)
- func ParseCertificates(pemBytes []byte) (certs []*x509.Certificate, err error)
- func ParseECPrivateKey(pemBytes []byte) (*ecdsa.PrivateKey, error)
- func ParsePrivateKey(pemBytes []byte) (crypto.PrivateKey, error)
- func ParsePublicKey(pemBytes []byte) (crypto.PublicKey, error)
- func ParseRSAPrivateKey(pemBytes []byte) (*rsa.PrivateKey, error)
- func ParseSigner(pemBytes []byte) (crypto.Signer, error)
- func SaveCertificate(path string, cert *x509.Certificate, mode os.FileMode) error
- func SaveCertificates(path string, certs []*x509.Certificate, mode os.FileMode) error
- type Block
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoBlocks = errors.New("no PEM blocks")
)
Functions ¶
func EncodeCertificate ¶
func EncodeCertificate(cert *x509.Certificate) []byte
func EncodeCertificates ¶
func EncodeCertificates(certs []*x509.Certificate) []byte
func EncodePKCS8PrivateKey ¶
func LoadCertificate ¶
func LoadCertificate(path string) (*x509.Certificate, error)
func LoadCertificateRequest ¶
func LoadCertificateRequest(path string) (*x509.CertificateRequest, error)
func LoadCertificates ¶
func LoadCertificates(path string) (certs []*x509.Certificate, err error)
func LoadECPrivateKey ¶
func LoadECPrivateKey(path string) (*ecdsa.PrivateKey, error)
func LoadPrivateKey ¶
func LoadPrivateKey(path string) (crypto.PrivateKey, error)
func LoadRSAPrivateKey ¶
func LoadRSAPrivateKey(path string) (*rsa.PrivateKey, error)
func ParseCertificate ¶
func ParseCertificate(pemBytes []byte) (*x509.Certificate, error)
func ParseCertificateRequest ¶
func ParseCertificateRequest(pemBytes []byte) (*x509.CertificateRequest, error)
func ParseCertificates ¶
func ParseCertificates(pemBytes []byte) (certs []*x509.Certificate, err error)
func ParseECPrivateKey ¶
func ParseECPrivateKey(pemBytes []byte) (*ecdsa.PrivateKey, error)
func ParsePrivateKey ¶
func ParsePrivateKey(pemBytes []byte) (crypto.PrivateKey, error)
func ParseRSAPrivateKey ¶
func ParseRSAPrivateKey(pemBytes []byte) (*rsa.PrivateKey, error)
func SaveCertificate ¶
func SaveCertificates ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.