Page 1 of 1

How to digitally sign an xml document

Posted: Thu Apr 12, 2018 3:07 pm
by David Williams
I want to sign a xml document using a P12 certificate in a FWXH application. Does anyone have a sample program or code extract to do this?
I found an article on the Microsoft site which has a full example in C# and an example in Java on another site. The problem is I wouldn't know where to start trying to convert C# or Java.

Any help would be appreciated.

TIA
David

Re: How to digitally sign an xml document

Posted: Thu Apr 12, 2018 3:34 pm
by Antonio Linares
David,

This seems to be a good example:

https://www.codeproject.com/Articles/12 ... crosoft-Cr

Re: How to digitally sign an xml document

Posted: Thu Apr 12, 2018 5:27 pm
by vilian
Antonio,

A resource to sign xml files using certified through FWH will be very usefully.

Re: How to digitally sign an xml document

Posted: Sun Apr 15, 2018 9:32 am
by lucasdebeltran
Yes, very important for electrónic invoices.

Thanks !.

Re: How to digitally sign an xml document

Posted: Mon Apr 16, 2018 7:03 am
by Antonio Linares
David,

Have you been able to implement that C code ?

Re: How to digitally sign an xml document

Posted: Mon Apr 16, 2018 10:54 am
by David Williams
Antonio,

Thank you for that link. I'm leaning towards the C version, as I have used Openssl before. I also have C# and VB examples so I need to make up my mind :? .

I hope to get going on it this week. I'll update you then.

Regards
David