[DUG] Signing XML

David Moorhouse David.Moorhouse at pegasus.org.nz
Fri Jul 29 09:56:05 NZST 2016


Thx Vik

I can do this in dot Net.  I’m looking for a Delphi implementation so we can fit it into some existing code.
The Clever Components suite appears to have an implementation but don’t want to splash out for the $

Cheers

D

David Moorhouse (BCom) | Principal Software Engineer - HealthOne
Pegasus Health (Charitable) Ltd
P: 03 353 0871 |   W:  www.pegasus.org.nz<http://www.pegasus.org.nz/>
E: david.moorhouse at pegasus.org.nz<mailto:david.moorhouse at pegasus.org.nz>
PO Box 741, Christchurch 8140
160 Bealey Ave, Christchurch 8014

[cid:image003.jpg at 01CEE516.6F544D00]



From: delphi-bounces at listserver.123.net.nz [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Vik Vasudev
Sent: Friday, 29 July 2016 9:46 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Signing XML

Hi David,

May be this might help (sorry its not a Delphi code its in C#)

https://msdn.microsoft.com/en-us/library/ms229744(v=vs.110).aspx



On Fri, Jul 29, 2016 at 8:53 AM, David Moorhouse <David.Moorhouse at pegasus.org.nz<mailto:David.Moorhouse at pegasus.org.nz>> wrote:
Hi

We have the need to sign a snippet of XML with an X509 digital  certificate.  The algorithm is to canonicalise  the XML, compute a SHA256 hash on this, and sign the hash with the certificate’s private key.

I can’t see any easy way of doing this within the VCL.

Any hints, or better still working code, are appreciated.

David


David Moorhouse (BCom) | Principal Software Engineer - HealthOne
Pegasus Health (Charitable) Ltd
P: 03 353 0871 |   W:  www.pegasus.org.nz<http://www.pegasus.org.nz/>
E: david.moorhouse at pegasus.org.nz<mailto:david.moorhouse at pegasus.org.nz>
PO Box 741, Christchurch 8140
160 Bealey Ave, Christchurch 8014

[cid:image003.jpg at 01CEE516.6F544D00]




*****************************************************

This email or attachment(s) may contain confidential or legally privileged information intended for the sole use of the addressee(s). Any use, redistribution, disclosure, or reproduction of this message, except as intended, is prohibited. If you received this email in error, please notify the sender and erase all copies of the message, including any attachments.

Any views or opinions expressed in this email (unless otherwise stated) may not represent those of Pegasus Health Ltd.

**********************************************************

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz<mailto:delphi at listserver.123.net.nz>
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz<mailto:delphi-request at listserver.123.net.nz> with Subject: unsubscribe



--
  vikas

********************************************************************************
This email or attachment(s) may contain confidential or legally privileged 
information intended for the sole use of the addressee(s). Any use, redistribution, 
disclosure, or reproduction of this message, except as intended, is prohibited. 
If you received this email in error, please notify the sender and erase all 
copies of the message, including any attachments.

Any views or opinions expressed in this email (unless otherwise stated) may not 
represent those of Pegasus Health Ltd.

********************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20160728/2151a42e/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3614 bytes
Desc: image001.jpg
Url : http://listserver.123.net.nz/pipermail/delphi/attachments/20160728/2151a42e/attachment-0001.jpg 


More information about the Delphi mailing list