[phpsoa] Re: Consuming SSL secured web services

2008-11-24 Thread Caroline Maynard

Matthew Peters wrote:
 OK so that's useful information and makes sense. How would you go
 about connecting to an https URL from PHP? I have never tried it. Is
 there a way to give the userid and password to the file wrapper?

I've forgotten a lot of what I knew about this too, but Matthew's 
approach of getting the connection working first without SCA is a good 
one. The first obvious question is do you have OpenSSL compiled in?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
phpsoa group.
To post to this group, send email to phpsoa@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.co.uk/group/phpsoa?hl=en
-~--~~~~--~~--~--~---



[phpsoa] Re: Consuming SSL secured web services

2008-11-24 Thread Silvano Girardi Jr

On Mon, Nov 24, 2008 at 1:32 PM, Caroline Maynard [EMAIL PROTECTED] wrote:

 Matthew Peters wrote:
 OK so that's useful information and makes sense. How would you go
 about connecting to an https URL from PHP? I have never tried it. Is
 there a way to give the userid and password to the file wrapper?

 I've forgotten a lot of what I knew about this too, but Matthew's
 approach of getting the connection working first without SCA is a good
 one. The first obvious question is do you have OpenSSL compiled in?

Yes, I do :)

Silvano

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
phpsoa group.
To post to this group, send email to phpsoa@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.co.uk/group/phpsoa?hl=en
-~--~~~~--~~--~--~---



[phpsoa] Re: Consuming SSL secured web services

2008-11-24 Thread Silvano Girardi Jr

On Sun, Nov 23, 2008 at 6:49 PM, Matthew Peters
[EMAIL PROTECTED] wrote:

 OK so that's useful information and makes sense. How would you go
 about connecting to an https URL from PHP? I have never tried it. Is
 there a way to give the userid and password to the file wrapper?

 Matthew

For this specific case I need to get it via cURL, where I can specify the cert:

curl_setopt($res_curl, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($res_curl, CURLOPT_SSLCERT, /path/to/cert.crt);

or, like I resolved, using the SoapClient, but it was a pain to
convert all XSD types into classes. I'd love to be able to use SCA_SDO
with cases like these, so count on me to try to get this thing working
with SCA.

I wonder if there is any way to specify the certificate to PHP
somewhere else, so it would work with fopen() as well.

Silvano

 On 20 Nov, 20:44, Silvano Girardi Jr [EMAIL PROTECTED] wrote:
 Nope.

 failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden

 Because it requires the certificate as well.

 Silvano

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
phpsoa group.
To post to this group, send email to phpsoa@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.co.uk/group/phpsoa?hl=en
-~--~~~~--~~--~--~---