4

I want to sign an xml document using a private key. 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.

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.

skaffman
  • 390,936
  • 96
  • 800
  • 764
Exitos
  • 28,170
  • 37
  • 120
  • 174

3 Answers3

2

Yes it is perfectly possible. Here is a comprehensive overview: How to: Verify the Digital Signatures of XML Documents with .NET

Also here is how to sign documents for later verification: In C#, sign an xml with a x.509 certificate and check the signature

Community
  • 1
  • 1
Teoman Soygul
  • 25,324
  • 6
  • 68
  • 79
0

Yes, this is possible. There are more important questions when putting together a solution.

  • Do you want this verification to be done automatically by your program?
  • Do you want to set up your own public key infrastructure?
  • Does your company already have a public signing certificate?

Depending on the answers, you might not need to write any code.

Karmastan
  • 5,488
  • 18
  • 24
0

There is also a nice article here about licenses using XML digital signatures: http://www.codeproject.com/KB/security/xmldsiglic.aspx

Mladen Mihajlovic
  • 5,555
  • 4
  • 39
  • 52