Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EcdsaCA ¶
type EcdsaCA struct { Name string Signer crypto.Signer SignCert *x509.Certificate }
EcdsaCA ecdsa CA结构
func (*EcdsaCA) GenerateLocalUser ¶
GenerateLocalUser 生成本地用户
func (*EcdsaCA) SignCertificate ¶
func (ca *EcdsaCA) SignCertificate(baseDir, name string, sans []string, pub interface{}) (*x509.Certificate, error)
SignCertificate 证书签名
type SM2CA ¶
SM2CA SM2 CA结构
func (*SM2CA) GenerateLocalUser ¶
GenerateLocalUser 生成本地用户
func (*SM2CA) SignCertificate ¶
func (ca *SM2CA) SignCertificate(baseDir, name string, sans []string, pub interface{}) (*x509.Certificate, error)
SignCertificate 证书签名
Click to show internal directories.
Click to hide internal directories.