Documentation ¶
Index ¶
- Constants
- func FetchCert(addr string) ([]byte, error)
- func GetCertInfo(certBytes []byte) ([]map[string]string, error)
- func GetCertRequestInfo(bytes []byte) ([]map[string]string, error)
- func NewCertKey(certInfo *CertInfo, rsaKeySize int) ([]byte, []byte, error)
- func NewSignedCertKey(caCert *x509.Certificate, caKey interface{}, certInfo *CertInfo, ...) ([]byte, []byte, error)
- func ParseCert(certBytes []byte) (*x509.Certificate, error)
- func ParseCerts(certBytes []byte) ([]*x509.Certificate, error)
- func ParseKey(keyBytes []byte) (interface{}, error)
- type CertInfo
Constants ¶
View Source
const ( CertBlockType = "CERTIFICATE" CertReqBlockType = "CERTIFICATE REQUEST" ECKEYBlockType = "EC PRIVATE KEY" RSAKeyBlockType = "RSA PRIVATE KEY" PrivateKeyBlockType = "PRIVATE KEY" )
Variables ¶
This section is empty.
Functions ¶
func NewCertKey ¶ added in v0.4.0
func NewSignedCertKey ¶
func ParseCerts ¶
func ParseCerts(certBytes []byte) ([]*x509.Certificate, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.