CURL: Result on console and in PHP are different

This is a discussion on CURL: Result on console and in PHP are different within the PHP Language forums, part of the PHP Programming Forums category; On Wed, 31 Oct 2007 12:31:29 +0100, Paul van Brouwershaven <p.vanbrouwershaven@gmail.com> wrote: > ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 10-31-2007
Rik Wasmus
 
Posts: n/a
Default Re: CURL: Result on console and in PHP are different

On Wed, 31 Oct 2007 12:31:29 +0100, Paul van Brouwershaven
<p.vanbrouwershaven@gmail.com> wrote:

> As saw the space problem just before you post, but this still doesn't
> solve the problem that there is no value in the ssl_verify_result
> result.
>
> If the SSL Certificate is wrong or right it always returns 0!
>
> I can check the result of the curl_exec to see if the certificate is
> valid, but this doen't tell me what the problem is.


Well, I get a clear:
"SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
failed"

...with curl_error(), as I don't have the certificate.

set verify peer to false would result in either this curl_error() output:
SSL: certificate subject name 'www.verisign.com' does not match target
host name 'verisign.com'
[ssl_verify_result] => 0]

Or no error with the right hostname:
[ssl_verify_result] => 19]
--
Rik Wasmus
Reply With Quote
  #12 (permalink)  
Old 10-31-2007
Paul van Brouwershaven
 
Posts: n/a
Default Re: CURL: Result on console and in PHP are different

On Oct 31, 1:04 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
> Well, I get a clear:
> "SSL certificate problem, verify that the CA cert is OK. Details:
> error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
> failed"
>
> ..with curl_error(), as I don't have the certificate.

Ok found the problem, the curl_close($ch) was before the
curl_error($ch)

> set verify peer to false would result in either this curl_error() output:
> SSL: certificate subject name 'www.verisign.com'does not match target
> host name 'verisign.com'
> [ssl_verify_result] => 0]


> Or no error with the right hostname:
> [ssl_verify_result] => 19]


ssl_verify_result does not change in my results

Reply With Quote
  #13 (permalink)  
Old 10-31-2007
Good Man
 
Posts: n/a
Default Re: CURL: Result on console and in PHP are different

Paul van Brouwershaven <p.vanbrouwershaven@gmail.com> wrote in
news:1193847270.228502.306510@22g2000hsm.googlegro ups.com:

> On Oct 31, 1:04 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
>> Well, I get a clear:
>> "SSL certificate problem, verify that the CA cert is OK. Details:
>> error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate
>> verify failed"
>>
>> ..with curl_error(), as I don't have the certificate.

> Ok found the problem, the curl_close($ch) was before the
> curl_error($ch)
>
>> set verify peer to false would result in either this curl_error()
>> output: SSL: certificate subject name 'www.verisign.com'does not
>> match target host name 'verisign.com'
>> [ssl_verify_result] => 0]

>
>> Or no error with the right hostname:
>> [ssl_verify_result] => 19]

>
> ssl_verify_result does not change in my results


are you still using "verisign.com" and not "www.verisign.com" ?


Reply With Quote
  #14 (permalink)  
Old 10-31-2007
Jerry Stuckle
 
Posts: n/a
Default [PHISHING]: Re: CURL: Result on console and in PHP are different


--------------------------------------------------------------------------------------------------
Panda IS 2008 has detected that this email could be spoofe

Take maximum precautions, as spoofed emails could be the sign of a fraud attempt
--------------------------------------------------------------------------------------------------
Paul van Brouwershaven wrote:
> On Oct 31, 1:04 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
>> Well, I get a clear:
>> "SSL certificate problem, verify that the CA cert is OK. Details:
>> error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
>> failed"
>>
>> ..with curl_error(), as I don't have the certificate.

> Ok found the problem, the curl_close($ch) was before the
> curl_error($ch)
>
>> set verify peer to false would result in either this curl_error() output:
>> SSL: certificate subject name 'www.verisign.com'does not match target
>> host name 'verisign.com'
>> [ssl_verify_result] => 0]

>
>> Or no error with the right hostname:
>> [ssl_verify_result] => 19]

>
> ssl_verify_result does not change in my results
>
>


No, it won't. The request failed, so there is no info to get.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

--------------------------------------------------------------------------------------------------
Panda IS 2008 has detected that this email could be spoofe

Take maximum precautions, as spoofed emails could be the sign of a fraud attempt
--------------------------------------------------------------------------------------------------

Reply With Quote
  #15 (permalink)  
Old 10-31-2007
Rik Wasmus
 
Posts: n/a
Default Re: [PHISHING]: Re: CURL: Result on console and in PHP are different

On Wed, 31 Oct 2007 18:05:20 +0100, Jerry Stuckle
<jstucklex@attglobal.net> wrote:
> Panda IS 2008 has detected that this email could be spoofed


Hehehe :P
--
Rik Wasmus
Reply With Quote
  #16 (permalink)  
Old 10-31-2007
Jerry Stuckle
 
Posts: n/a
Default [PHISHING]: Re: CURL: Result on console and in PHP are different


--------------------------------------------------------------------------------------------------
Panda IS 2008 has detected that this email could be spoofe

Take maximum precautions, as spoofed emails could be the sign of a fraud attempt
--------------------------------------------------------------------------------------------------
Jerry Stuckle wrote:

> Paul van Brouwershaven wrote:
>> On Oct 31, 1:04 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
>>> Well, I get a clear:
>>> "SSL certificate problem, verify that the CA cert is OK. Details:
>>> error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate
>>> verify
>>> failed"
>>>
>>> ..with curl_error(), as I don't have the certificate.

>> Ok found the problem, the curl_close($ch) was before the
>> curl_error($ch)
>>
>>> set verify peer to false would result in either this curl_error()
>>> output:
>>> SSL: certificate subject name 'www.verisign.com'does not match target
>>> host name 'verisign.com'
>>> [ssl_verify_result] => 0]

>>
>>> Or no error with the right hostname:
>>> [ssl_verify_result] => 19]

>>
>> ssl_verify_result does not change in my results
>>
>>

>
> No, it won't. The request failed, so there is no info to get.
>


Sorry - forgot to trim the anti-virus. Wish I could get it to stop
doing that in newsgroups.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

--------------------------------------------------------------------------------------------------
Panda IS 2008 has detected that this email could be spoofe

Take maximum precautions, as spoofed emails could be the sign of a fraud attempt
--------------------------------------------------------------------------------------------------

Reply With Quote
  #17 (permalink)  
Old 11-01-2007
Jackie Silva
 
Posts: n/a
Default Re: [PHISHING]: Re: CURL: Result on console and in PHP are different

stuckle, why are you top posting? have you given up so quickly on your
position?

"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:apKdndHjGeZwKLXanZ2dnUVZ_hninZ2d@comcast.com. ..
>
> ---------------------------------------------------------------------------------------------------
> Panda IS 2008 has detected that this email could be spoofed
>
> Take maximum precautions, as spoofed emails could be the sign of a fraud
> attempt.
> ---------------------------------------------------------------------------------------------------
> Paul van Brouwershaven wrote:
>> On Oct 31, 1:04 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
>>> Well, I get a clear:
>>> "SSL certificate problem, verify that the CA cert is OK. Details:
>>> error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate
>>> verify
>>> failed"
>>>
>>> ..with curl_error(), as I don't have the certificate.

>> Ok found the problem, the curl_close($ch) was before the
>> curl_error($ch)
>>
>>> set verify peer to false would result in either this curl_error()
>>> output:
>>> SSL: certificate subject name 'www.verisign.com'does not match target
>>> host name 'verisign.com'
>>> [ssl_verify_result] => 0]

>>
>>> Or no error with the right hostname:
>>> [ssl_verify_result] => 19]

>>
>> ssl_verify_result does not change in my results
>>
>>

>
> No, it won't. The request failed, so there is no info to get.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================
>
> ---------------------------------------------------------------------------------------------------
> Panda IS 2008 has detected that this email could be spoofed
>
> Take maximum precautions, as spoofed emails could be the sign of a fraud
> attempt.
> ---------------------------------------------------------------------------------------------------
>



Reply With Quote
  #18 (permalink)  
Old 11-01-2007
Paul van Brouwershaven
 
Posts: n/a
Default Re: : Re: CURL: Result on console and in PHP are different

Yes, there must be a failed status in the [ssl_verify_result]. Or a
success status in the [ssl_verify_result] but this value is always
zore.

A faild status should more logical because it can fail because of more
then one reason.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:14 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0