x509 certificate key to asymmetric algorithm
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.
精彩评论