curl-and-php
Re: SSL: couldn't create a context! Errors
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 14 Jan 2009 20:07:27 +0100 (CET)
Date: Wed, 14 Jan 2009 20:07:27 +0100 (CET)
On Wed, 14 Jan 2009, David Justl wrote:
> "SSL: couldn't create a context!"
This means that the OpenSSL function SSL_CTX_new() returns a failure when
libcurl calls it.
> curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); // this line makes it work under
> https
This comment is misleading. It doesn't quite "make it work". It disables peer
certificate verification.
> Or are we doing something wrong in our code?
There's really nothing particular you _can_ do to make this happen, but the
downside is that there's also nothing you can do to prevent this from
happening... I don't know why the function fails.
-- / daniel.haxx.se _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2009-01-14