i answer myself, hth someone else.

i use SSL just to use a crypted "session" to a target server.
since target server certificate is not really "verified", i need to add
these curl options:

curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);

in order to disable SSL certificate verification.

otherwise, before choosing a partner for a specific service, i suggest
you to find one that has a verificable certificate ;-)

bye, stain.


Il mer, 2003-02-12 alle 10:57, Stain ha scritto:
> 
> hi all
> 
> i use latest apache (1.3.27) with php 4.3.0 + curl 7.10.3
> 
> i use php curl function to connect to a remote SSL-ed web server. the
> code is as follow:
> 
> <code>
> 
> $ch = curl_init();
> 
> $url = 'https://www.example.com/cgi.ext';
> 
> curl_setopt ($ch, CURLOPT_URL, $url);
> 
> echo '<pre>';
> curl_exec ($ch);
> echo '</pre>';
> 
> if (curl_error($ch))
>       printf("Error %s: %s", curl_errno($ch), curl_error($ch));
> 
> curl_close ($ch);
> 
> </code>
> 
> the output is:
> Error 35: SSL: error:14090086:lib(20):func(144):reason(134)
> 
> error 35 is (from php manual):
> CURLE_SSL_CONNECT_ERROR,       /* 35 - wrong when connecting with SSL */
> 
> but i don't know how to futher debug it.
> 
> any hint? is that a bug?
> 
> bye, stain.
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to