Versions in this module Expand all Collapse all v1 v1.4.6 May 20, 2020 Changes in this version + func LoadCertificateECDSA(certPath string) (*x509.Certificate, error) + func LoadCertificateGMSM2(certPath string) (*sm2.Certificate, error) + type CA struct + Country string + Locality string + Name string + OrganizationalUnit string + PostalCode string + Province string + SignCert *x509.Certificate + SignSm2Cert *sm2.Certificate + Signer crypto.Signer + Sm2Key bccsp.Key + StreetAddress string + func NewCA(...) (*CA, error) + func (ca *CA) SignCertificate(baseDir, name string, ous, sans []string, pub *sm2.PublicKey, ku x509.KeyUsage, ...) (*sm2.Certificate, error)