C# Support for RSA SHA 256 signing for individual XML elements

后端 未结 2 1673
借酒劲吻你
借酒劲吻你 2021-01-07 03:58

I have encountered a blocker with the .NET Framework version 4.5 to do with signing of XML with digital signatures.

My problem is based around the need to sign indi

2条回答
  •  失恋的感觉
    2021-01-07 04:48

    Unfortunately Andrew's answer is not applicable when the private key cannot be exported.

    I am using a smart-card and so far I have found no way of using SignedXML with SHA-256. This feature seems to be broken in the current implementation of RSACryptoServiceProvider.

    The only solution in my opinion would be to switch from CSP to PKCS#11 and then use BouncyCastle.Net. And rewrite everything.

提交回复
热议问题