Documentation ¶
Index ¶
- func GetAuthorityKeyIdentifierFromCrl(crl *pkix.CertificateList) ([]byte, error)
- func IsECDSASignedCert(cert *x509.Certificate) bool
- func ParseECDSAPubKey2SM2PubKey(key *ecdsa.PublicKey) *sm2.PublicKey
- type AuthConfig
- type Certificate
- type PublicKeyInfo
- type TbsCertificate
- type Validator
- type Validity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthorityKeyIdentifierFromCrl ¶
func GetAuthorityKeyIdentifierFromCrl(crl *pkix.CertificateList) ([]byte, error)
GetAuthorityKeyIdentifierFromCrl Crl
func IsECDSASignedCert ¶
func IsECDSASignedCert(cert *x509.Certificate) bool
IsECDSASignedCert 是否ecdsa证书
Types ¶
type AuthConfig ¶
AuthConfig 校验器配置
type Certificate ¶
type Certificate struct { Raw asn1.RawContent TBSCertificate TbsCertificate SignatureAlgorithm pkix.AlgorithmIdentifier SignatureValue asn1.BitString }
Certificate Certificate
func CertFromX509Cert ¶
func CertFromX509Cert(cert *x509.Certificate) (Certificate, error)
CertFromX509Cert x509格式转换
type PublicKeyInfo ¶
type PublicKeyInfo struct { Raw asn1.RawContent Algorithm pkix.AlgorithmIdentifier PublicKey asn1.BitString }
PublicKeyInfo PublicKeyInfo
type TbsCertificate ¶
type TbsCertificate struct { Raw asn1.RawContent Version int `asn1:"optional,explicit,default:0,tag:0"` SerialNumber *big.Int SignatureAlgorithm pkix.AlgorithmIdentifier Issuer asn1.RawValue Validity Validity Subject asn1.RawValue PublicKey PublicKeyInfo UniqueID asn1.BitString `asn1:"optional,tag:1"` SubjectUniqueID asn1.BitString `asn1:"optional,tag:2"` Extensions []pkix.Extension `asn1:"optional,explicit,tag:3"` }
TbsCertificate TbsCertificate
Click to show internal directories.
Click to hide internal directories.