[DUG] Signing XML

David Moorhouse David.Moorhouse at pegasus.org.nz
Fri Jul 29 08:53:38 NZST 2016


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.

********************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20160728/a70e0e09/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/a70e0e09/attachment-0001.jpg 


More information about the Delphi mailing list