Closed MartinWeidner closed 3 years ago
I've found the solution:
// Get SecurePart to sign
$SecurePart = $xml_temp->getElementsByTagName("SecurePart")->item(0);
// Sign using SHA-1
$objDSig->addReference(
$SecurePart,
XMLSecurityDSig::SHA1,
array('http://www.w3.org/2001/10/xml-exc-c14n#'),
);
I extract the "SecurePart" node to sign.
Hi, maybe it is a small issue, but I spent hours of coding and debugging...
I need the following XML:
So what I doing so far:
What I get:
The
Id="pfxfb...
should be in SecurePart, not in SignatureAuthentication. How can I achive this?Thanks in Advance.
Best Regards Martin