开发者

x509 certificate key to asymmetric algorithm

开发者 https://www.devze.com 2023-01-23 08:07 出处:网络
Re-doing this quest开发者_如何学Goion since I don\'t know if I was getting my point across correctly.

Re-doing this quest开发者_如何学Goion since I don't know if I was getting my point across correctly.

I have a signedXML object

Dim signedXml As New SignedXml(envelope)

I need to set the SigningKey property of this object

signedXml.SigningKey

I also have my certificate object

Dim cert As X509Certificate = Me.GetX509Certificate

How can I set the SigningKey property of signedXml using my cert.

In .NET 2.0 each X509Certificate had a 'Key' property which returned an RSA object, but in 3.5 this property is removed.


You might be able to use X509Certificate2 and its PrivateKey property instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消