How to digitally sign an xml document

How to digitally sign an xml document

Postby David Williams » Thu Apr 12, 2018 3:07 pm

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
David Williams
 
Posts: 82
Joined: Fri Mar 03, 2006 6:26 pm
Location: Ireland

Re: How to digitally sign an xml document

Postby Antonio Linares » Thu Apr 12, 2018 3:34 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to digitally sign an xml document

Postby vilian » Thu Apr 12, 2018 5:27 pm

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
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: How to digitally sign an xml document

Postby lucasdebeltran » Sun Apr 15, 2018 9:32 am

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
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: How to digitally sign an xml document

Postby Antonio Linares » Mon Apr 16, 2018 7:03 am

David,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to digitally sign an xml document

Postby David Williams » Mon Apr 16, 2018 10:54 am

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
User avatar
David Williams
 
Posts: 82
Joined: Fri Mar 03, 2006 6:26 pm
Location: Ireland


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 90 guests