KDSoap icon indicating copy to clipboard operation
KDSoap copied to clipboard

Creating XML Signature

Open davidovv opened this issue 4 years ago • 3 comments

I have a wsdl that uses enveloped signature The signature is inserted into element, but wsdl description already contains signature. So the class that is kreated with tool that converts wsdl to cpp allready contains signature. How can i have object without one element, and after put that element back.

First i need element without signature, canonicalize it and calculate hash value, insert hash value into signed info, canonicalize signed info and sign it, append signature value and certificate back into my element. How can i achieve this in kdsoap?

davidovv avatar Nov 02 '20 13:11 davidovv

I don't understand the request, which kinds of "signature" is this about? I don't see any feature in KDSoap which is about "signatures".

dfaure-kdab avatar Jun 02 '21 12:06 dfaure-kdab

i am talking about this kind of signature, that involves certificates AND RSA https://en.wikipedia.org/wiki/XML_Signature

davidovv avatar Jun 02 '21 13:06 davidovv

OK, thanks for the pointer. I think this is the same as https://github.com/KDAB/KDSoap/issues/17 then (in summary "every KDSOAP type should have some serializeFromXml(const QString&) and QString deserializeToXml()"). If you had such methods, you could then perform the signing you mention, right?

dfaure-kdab avatar Jun 02 '21 14:06 dfaure-kdab