Signature verification error
Hi,
I'm trying to set up a WSF/PHP-client to interact with a WCF-Webservice. The communication should be encrypted using message-based security and X509 certificates. After following countless directions and documentations I've managed to create a PHP-Client using the following code:
$sMachineCert = ws_get_cert_from_file("cert/client.pem");
$sServerCert = ws_get_cert_from_file("cert/server.pem");
$sPrivateKey = ws_get_key_from_file("cert/private.key");
$sPolicy = file_get_contents("policy.xml");
echo "Setting up security...
";
$oSecToken = new WSSecurityToken(array(
"certificate"=>$sMachineCert,
"privateKey"=>$sPrivateKey,
"receiverCertificate"=>$sServerCert));
$oSecPolicy = new WSPolicy($sPolicy);
echo "Creating client and downloading WSDL...
";
$oClient = new WSClient(array(
"useSOAP"=>"1.1",
"wsdl"=>"http://antragon:42424/net.fitzel.service/Service?wsdl",
"to"=>"http://antragon:42424/net.fitzel.service/Service/basic",
"policy"=>$oSecPolicy,
"securityToken"=>$oSecToken));
echo "Retrieving proxy...
";
$oProxy = $oClient->getProxy();
echo "Doing some work...
";
$oProxy->DoWork();
The problem is, that the WCF-service throws a fault indicating a security issue. Using the tracelog provided by the .NET-Framework I got the exception:
'Digest verification failed for Reference '#SigID-149c742a-a05d-4484".' This is exactly the same error Dan got a little time ago (see http://wso2.org/forum/thread/2607). His problem ended with the arrival of the version 1.1.0. His solution does not work for me: even using this old version I get this error...
Actually I'm using the 1.3.2 (also tried latest SVN and 1.1.0). I've attached the client-log (recorded at dbglevel 10).
So please: is anybody out there to help me??
Thank you
| Attachment | Size |
|---|---|
| 080819-Logfiles.zip | 4.41 KB |
- Login or register to post comments
- Printer friendly version
- 110 reads











Additional data
Here is the data:
- certificates
- wsdl
- policy I use
- message I "sharked" ;-)
The error message is "Digest verification failed for Reference '#SigID-67057b6a-6d68-43a3'".
Thank you
Joachim