Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SOAP::Lite sending security certificates with request

Status
Not open for further replies.

spperl

Programmer
Mar 29, 2005
34
GB
Hi,

I'm working on a client that communicates with remote web services using SOAP::Lite

All communication needs to be authenticated. To do so a public certificate and private key have been created. My difficulty is how do I pass across the public certificate for authentication at the server side? The documentation states the following environment variables need to be set and point to the created certificates...

Code:
$ENV{HTTPS_CERT_FILE} = 'prv_key.pem';
$ENV{HTTPS_KEY_FILE}  = 'pub_cert.pem';

I've done so however the response at the server end is always the same:

Request does not contain required Security header

The actual communication is straight forward enough...

Code:
my $request = SOAP::Lite
        ->uri('[URL unfurl="true"]https://webaddress/webservice')[/URL]
	->proxy('[URL unfurl="true"]https://webaddress/webservice')[/URL]
	->methodCall(%args);

I'm told the necessary certificates are in place at the server side so 'assuming' that end is OK I wonder if anyone can help or confirm the configuartion of the client side? Other questions are ...

1. Is setting the ENV vars enough?
2. Has anyone got experience using SOAP::Lite in this way?
3. Should the certificate form part of the request and if so can I intercept this to check all the neccessary information is being sent?

Any help or suggestions would be greatly appreciated...
 
Did you actually put the full path in your code or did you do it just like you typed?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those Who Say It Cannot Be Done Are Usually Interrupted by Someone Else Doing It; Give the wrong symptoms, get the wrong solutions;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top