Versions in this module Expand all Collapse all v1 v1.4.6 May 20, 2020 Changes in this version + type CA interface + CertBytes func() []byte + NewClientCertKeyPair func() (*CertKeyPair, error) + NewServerCertKeyPair func(host string) (*CertKeyPair, error) + func NewCA() (CA, error) + type CertKeyPair struct + Cert []byte + Key []byte + TLSCert *sm2.Certificate + func CertKeyPairFromString(privKey string, pubKey string) (*CertKeyPair, error) + func (p *CertKeyPair) PrivKeyString() string + func (p *CertKeyPair) PubKeyString() string