Documentation ¶
Index ¶
- func CertToPem(cert *x509.Certificate) []byte
- func CertToStr(cert *x509.Certificate, header bool) string
- func KeyToPem(key *rsa.PrivateKey) []byte
- func MakeCertPool(certs ...*x509.Certificate) *x509.CertPool
- func MakeP12TrustStore(certs map[string]*x509.Certificate, passwd string) ([]byte, error)
- func ParseCert(s string) (*x509.Certificate, error)
- func ParseCsr(b []byte) (*x509.CertificateRequest, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertToPem ¶
func CertToPem(cert *x509.Certificate) []byte
func KeyToPem ¶ added in v0.12.5
func KeyToPem(key *rsa.PrivateKey) []byte
func MakeCertPool ¶ added in v0.12.5
func MakeCertPool(certs ...*x509.Certificate) *x509.CertPool
func MakeP12TrustStore ¶ added in v0.12.5
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.