非对称算法的 x509 证书密钥
重新做这个问题,因为我不知道我是否正确理解了我的观点。
我有一个signedXML 对象,
Dim signedXml As New SignedXml(envelope)
我需要设置该对象的SigningKey 属性
signedXml.SigningKey
,我还有我的证书对象,
Dim cert As X509Certificate = Me.GetX509Certificate
如何使用我的cert.xml 设置signedXml 的SigningKey 属性。
在 .NET 2.0 中,每个 X509Certificate 都有一个返回 RSA 对象的“Key”属性,但在 3.5 中该属性被删除。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您也许可以使用
X509Certificate2
及其PrivateKey
属性。You might be able to use
X509Certificate2
and itsPrivateKey
property instead.