Can I use digital signature in this scenario? C #

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 has not changed using the public key.

I want to distribute the same public key to all my clients so that we can issue them licenses.

Is it possible? I am using C # and .net.

+4
source share
3 answers

Yes, it is quite possible. Here is a complete overview: A practical guide. Digitally verify XML documents with .NET

Here you can also sign documents for subsequent verification: In C #, sign xml with x.509 certificate and verify the signature

+2
source

Yes it is possible. There are more important questions when making a decision.

  • Do you want this check to be performed automatically by your program?
  • Do you want to set up your own public key infrastructure?
  • Does your company already have an open signature certificate?

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

0
source

There is also a good article about XML digital signing licenses: http://www.codeproject.com/KB/security/xmldsiglic.aspx

0
source

Source: https://habr.com/ru/post/1335938/


All Articles