须要先调用函数X509_get_pubkey()得到公钥属性结构体,然后通过type字段来推断公钥的算法类型。 详细实现函数例如以下: ULONG COpenSSLCertificate::get_KeyType(ULONG* pulType) { EVP_PKEY *pk = NULL; stack_st_X509* chain = NULL; X509_EXTENSION *pex = NULL; if (!m_pX509) { return CERT_ERR_INV...
IX509CertificateRequestPkcs10::get_PrivateKey 方法 IX509CertificateRequestPkcs10::get_PublicKey 方法 IX509CertificateRequestPkcs10::get_RawDataToBeSigned 方法 IX509CertificateRequestPkcs10::get_ReuseKey 方法 IX509CertificateRequestPkcs10::get_Signature 方法 ...
signatureValue: Dss-Sig-Value ::= SEQUENCE { -- sha1DSA签名算法时,签名值 r INTEGER, s INTEGER } Name ::= CHOICE { RDNSequence } RDNSequence ::= SEQUENCE OF RelativeDistinguishedName RelativeDistinguishedName ::= SET OF AttributeTypeAndValue AttributeTypeAndValue ::= SEQUENCE { type Attribut...
Signature 属性检索提供程序上的数字签名。 签名包含在由 Unicode 编码字符串表示的字节数组中。 此属性为只读。 语法 C++ 复制 HRESULT get_Signature( EncodingType Encoding, BSTR *pValue ); 参数 Encoding pValue 返回值 无 备注 调用InitializeEncode 方法或 InitializeDecode 方法来初始化 Si...
GetHashCode() Serves as the default hash function. (Inherited fromObject) GetSignatureAlgorithmIdentifier(HashAlgorithmName) When overridden in a derived class, encodes the X.509 algorithm identifier for this signature. GetType() Gets theTypeof the current instance. ...
TheParametersproperty retrieves a byte array that contains the parameters associated with the signature algorithm. The byte array is represented by a Unicode-encoded string. This property is read/write. Syntax C++ HRESULTget_Parameters( EncodingType Encoding, BSTR *pValue ); ...
: {0}{1}",x509.Verify(),Environment.NewLine); Console.WriteLine("Simple Name: {0}{1}",x509.GetNameInfo(X509NameType.SimpleName,true),Environment.NewLine); Console.WriteLine("Signature Algorithm: {0}{1}",x509.SignatureAlgorithm.FriendlyName,Environment.NewLine); Console.WriteLine("Public Key:...
: {0}{1}",x509.Verify(),Environment.NewLine); Console.WriteLine("Simple Name: {0}{1}",x509.GetNameInfo(X509NameType.SimpleName,true),Environment.NewLine); Console.WriteLine("Signature Algorithm: {0}{1}",x509.SignatureAlgorithm.FriendlyName,Environment.NewLine); Console.WriteLine("Public Key:...
IX509PrivateKey::p ut_ProviderType 方法 IX509PrivateKey::p ut_ReaderName 方法 IX509PrivateKey::p ut_SecurityDescriptor 方法 IX509PrivateKey::p ut_Silent 方法 IX509PrivateKey::p ut_UIContextMessage 方法 IX509PrivateKey::Verify 方法 IX509PublicKey 接口 IX509SCEPEnrollment 接口 IX509SignatureInf...
Export(X509ContentType, String) 使用指定的密码,以X509Certificate值之一所描述的格式将当前X509ContentType对象导出到字节数组。 (继承自X509Certificate) ExportCertificatePem() 导出编码为 PEM 的公共 X.509 证书。 GetCertContentType(Byte[]) 指示字节数组中所包含的证书类型。