[英]Can I use a digital signature in this scenario? With c#
I want to sign an xml document using a private key. 我想使用私钥签署xml文档。 And then when my client receives the software for them to be able to verify that the xml document hasnt changed by using a public key.
然后,当我的客户接收到软件后,他们便可以使用公共密钥来验证xml文档尚未更改。
I want to distribut the same public key amongst all of my customers so that we can issue licenses to them. 我想在所有客户之间分配相同的公钥,以便我们可以向他们颁发许可证。
Is this possible? 这可能吗? I am using c# and .net.
我正在使用c#和.net。
Yes it is perfectly possible. 是的,这完全有可能。 Here is a comprehensive overview: How to: Verify the Digital Signatures of XML Documents with .NET
这是一个全面的概述: 如何:使用.NET验证XML文档的数字签名
Also here is how to sign documents for later verification: In C#, sign an xml with a x.509 certificate and check the signature 这也是如何对文档进行签名以供以后验证: 在C#中,使用x.509证书对xml进行签名并检查签名
Yes, this is possible. 是的,这是可能的。 There are more important questions when putting together a solution.
提出解决方案时,还有更多重要的问题。
Depending on the answers, you might not need to write any code. 根据答案,您可能不需要编写任何代码。
这里还有一篇很好的文章,介绍使用XML数字签名的许可证: http : //www.codeproject.com/KB/security/xmldsiglic.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.