How to digitally sign an xml document

Post Reply
User avatar
David Williams
Posts: 82
Joined: Fri Mar 03, 2006 6:26 pm
Location: Ireland

How to digitally sign an xml document

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How to digitally sign an xml document

Post by Antonio Linares »

David,

This seems to be a good example:

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

Antonio Linares
www.fivetechsoft.com
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Re: How to digitally sign an xml document

Post by vilian »

Antonio,

A resource to sign xml files using certified through FWH will be very usefully.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
lucasdebeltran
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am
Contact:

Re: How to digitally sign an xml document

Post by lucasdebeltran »

Yes, very important for electrónic invoices.

Thanks !.
Muchas gracias. Many thanks.

Un saludo, Best regards,

Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]

Implementando MSVC 2010, FWH64 y ADO.

Abandonando uso xHarbour y SQLRDD.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How to digitally sign an xml document

Post by Antonio Linares »

David,

Have you been able to implement that C code ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
David Williams
Posts: 82
Joined: Fri Mar 03, 2006 6:26 pm
Location: Ireland

Re: How to digitally sign an xml document

Post 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
Post Reply