Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPubkeyFromCert ¶
GetPubkeyFromCert gets the pubkey from certificate
func UnexpectedPubKeyAlgo ¶
func VerifyCertFromRoot ¶
Types ¶
type Cert ¶
type Cert interface { WritePrivateKeytoMem() ([]byte, error) VerifyCertFromRoot(rootCert Cert) error }
func ReadCertificateFromMem ¶
func ReadSM2CertFromMem ¶
func ReadX509CertFromMem ¶
type Sm2Cert ¶
type Sm2Cert struct { *x509.Certificate *sm2.PrivateKey }
Sm2Cert defines sm2 signed X509 certificate
func (Sm2Cert) VerifyCertFromRoot ¶
func (Sm2Cert) WritePrivateKeytoMem ¶
type X509Cert ¶
type X509Cert struct { *x509.Certificate PrivateKey interface{} }
X509Cert defines custom X509 certificate
func (X509Cert) VerifyCertFromRoot ¶
func (X509Cert) WritePrivateKeytoMem ¶
Click to show internal directories.
Click to hide internal directories.