Re: How to digitally sign an XML document

2017-03-29 Thread Bruno LEGAY via 4D_Tech
Hi,

> How to digitally sign an XML document
The signature of xml document is pretty well standardized by the xmldisg which 
is a W3C spec.

We have written a v15 component to sign a soap request with xmldsig. 
To do this I used 4D php fastcgi for openssl commands and xml canonicalization.

The xml is signed with a certificate contained in a pkcs12 password protected 
keystone.

Basically the xml has a designated "signed info" section. This section is 
canonanlized. There is a sha256 digest generated on this canonalized data and 
the digest is then signed with the certificate. The signature is then base64 
encoded and embedded in the xml document signature element.

Contact me privately if you need some help on this.

HTH
Bruno LEGAY



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

How to digitally sign an XML document

2017-03-28 Thread Epperlein, Lutz (agendo) via 4D_Tech
The subject says it. How do I do this with 4D? 

I found a description how to do it using the .NET Framework: 
https://msdn.microsoft.com/de-de/library/ms229745(v=vs.110).aspx
The following question is the question for verifying of signed xml documents. 
There exists a .NET reference too: 
https://msdn.microsoft.com/de-de/library/ms229950(v=vs.110).aspx
There using some .NET classes, of course there aren't available in 4D. But is 
there an easy way to achieve the same with 4D?

Regards
Lutz Epperlein

--  
Lutz Epperlein  
--
Agendo Gesellschaft für politische Planung mbH
Köpenicker Str. 9
10997 Berlin
http://www.agendo.de/
--



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**