You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by shams jawaid <sh...@hotmail.com> on 2007/10/15 15:40:10 UTC

RE: [wsf-php-user] key failure *update*

HI, just wanted to say that, 
 
in using tomcat 5.5 i used axis2 1.2, and tomcat 6 - axis2 1.3 for my example.
 
thanks


From: shams4d@hotmail.comTo: rampart-dev@ws.apache.org; wsf-php-user@wso2.orgCC: axis-user@ws.apache.orgSubject: RE: [wsf-php-user] key failureDate: Mon, 15 Oct 2007 05:51:38 +0000


Hi kaushalye,  i did this in tomcat 5.5 then in tomcat 6. i attached both the outputs in the tomcat window and in tcpmon,  thanks > Date: Mon, 15 Oct 2007 11:07:12 +0530> From: kaushalye@wso2.com> To: wsf-php-user@wso2.org> CC: rampart-dev@ws.apache.org; axis-user@ws.apache.org> Subject: Re: [wsf-php-user] key failure> > Hi Shams,> I think if you could attach a trace of the SOAP message, Rampart/Java > guys may be able to find the reason for the fault string in the > response. The complaint is about a missing encryption result for an > Id(NULL?), which they have to match with the message. The PHP client and > its configurations seems to be correct.> -Kaushalye> > shams jawaid wrote:> > Hi,> > > > i am currently trying to encrypt and sign a simple service from a php > > client to a java web service. the request is encrypted and signed, but > > the service side response recieves this error in tcpmon:> > > > <faultstring>Missing encryption result for id : </faultstring>> > > > and in tomcat, this is the output:> > > > INFO: Server startup in 3734 ms> > [INFO] Verification successful for URI '#SigID-402a0180-2c19-4f2e'> > [INFO] Verification successful for URI '#SigID-a673ae2e-5835-4d1f'> > > > in my client side, i have included the keys:> > > > $my_cert = ws_get_cert_from_file('alice_cert.cert'); // client side > > certificate( public key)> > $my_key = ws_get_key_from_file('alice_key.pem'); // client side key> > $rec_cert = ws_get_cert_from_file('bob_cert.cert'); // server side > > certificate (public key )> > > > and in my service side key (service.jks) referenced like this:> > > > <ramp:signatureCrypto>> > <ramp:crypto provider='org.apache.ws.security.components.crypto.Merlin'>> > <ramp:property > > name='org.apache.ws.security.crypto.merlin.keystore.type'>JKS</ramp:property>> > <ramp:property > > name='org.apache.ws.security.crypto.merlin.file'>service.jks</ramp:property>> > <ramp:property > > name='org.apache.ws.security.crypto.merlin.keystore.password'>apache</ramp:property>> > </ramp:crypto>> > </ramp:signatureCrypto>> > <ramp:encryptionCypto>> > <ramp:crypto provider='org.apache.ws.security.components.crypto.Merlin'>> > <ramp:property > > name='org.apache.ws.security.crypto.merlin.keystore.type'>JKS</ramp:property>> > <ramp:property > > name='org.apache.ws.security.crypto.merlin.file'>service.jks</ramp:property>> > <ramp:property > > name='org.apache.ws.security.crypto.merlin.keystore.password'>apache</ramp:property>> > </ramp:crypto>> > </ramp:encryptionCypto>> > </ramp:RampartConfig>> > > > i have includeded :> > > > [1] alice_cert> > [2] bob_cert> > [3] bob_key (although i am unsure whether this was imported properly, > > and am thinking this might be the cause of the error)> > > > i have attached my service.properties, service.jks, PWCBHandler.class, > > services.xml and my service file.> > > > i have also attached my client side files including the alice_key, > > alice_cert, bob_cert, php client file and the policy.xml file.> > > > If anyone can solve this error out there it would be a tremendous > > help, or if anyone can create a keystore properly if i have not done > > so, please do. i suspect this is the reason why. the keystore attached > > is service.jks> > > > thanks alot!> > > > > >> > ------------------------------------------------------------------------> > The next generation of MSN Hotmail has arrived - Windows Live Hotmail > > <http://www.newhotmail.co.uk>> > ------------------------------------------------------------------------> >> > _______________________________________________> > Wsf-php-user mailing list> > Wsf-php-user@wso2.org> > http://wso2.org/cgi-bin/mailman/listinfo/wsf-php-user> > > > > -- > http://kaushalye.blogspot.com/> http://wso2.org/> 

The next generation of MSN Hotmail has arrived - Windows Live Hotmail 
_________________________________________________________________
100’s of Music vouchers to be won with MSN Music
https://www.musicmashup.co.uk