Question

Re-doing this question 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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top