Versions in this module Expand all Collapse all v1 v1.0.0 Mar 24, 2023 Changes in this version + func CreateCertificate(cinfo *TBSCertificate, signature []byte) ([]byte, error) + func CreateCertificateRequest(template *x509.CertificateRequest, pub *sm2.PublicKey, pri *sm2.PrivateKey, ...) (csr []byte, err error) + func FillCertificateTemplateByCSR(template *x509.Certificate, csr *x509.CertificateRequest) + func IssueCertificateBySoftCAKey(cinfo *TBSCertificate, caPri *sm2.PrivateKey, userId []byte) ([]byte, error) + func ParseCertificate(asn1Data []byte) (*x509.Certificate, error) + func ParseCertificateRequest(asn1Data []byte) (*x509.CertificateRequest, error) + func VerifyCSRSign(csr *x509.CertificateRequest, userId []byte) bool + func VerifyDERCSRSign(asn1Data []byte, userId []byte) (bool, error) + type TBSCertificate tbsCertificate + func CreateCertificateInfo(template, parent *x509.Certificate, csr *x509.CertificateRequest) (*TBSCertificate, error)