문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top