Re: HTTP_Request and Client Certs

From: Date: Sat, 24 Jan 2004 08:17:13 +0000
Subject: Re: HTTP_Request and Client Certs
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25248@lists.php.net to get a copy of this message
Hi! Richard Heyes wrote:
Is there a reliable way in PHP 4.x to test whether 'ssl://' connections
will
work without actually trying to connect?
Well it has to be 4.3 and up for a start.
Yes, of course. Here is the current check from HTTP_Request:
        // 4.3.0 supports SSL connections using OpenSSL. The function test determines
        // we running on at least 4.3.0
        if (strcasecmp($this->_url->protocol, 'https') == 0 AND function_exists('file_get_contents') AND extension_loaded('openssl')) {
The problem is, the check passes, but the 'ssl://' connection does not work still.

« previous php.pear.dev (#25248) next »