Re: HTTP_Request2 SSL/TLS issue (was Re: Can I (or Alexey) do a release of HTTP_Request2?)
| From: | Alexey Borzov | Date: | Mon, 08 Feb 2016 17:22:26 +0000 |
| Subject: | Re: HTTP_Request2 SSL/TLS issue (was Re: Can I (or Alexey) do a release of HTTP_Request2?) | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-55510@lists.php.net to get a copy of this message | ||
Hi Michael,
On 08.02.2016 18:40, Michael Gauthier wrote:
Thanks for your testing of bug #20462 Looks like there was something fishy with the original report and/or with a particular PHP installation the reporter used.Well, it would be nice to know whether the report is reproducible. If you can check on several OS X versions then please do this.
Yes. I'll make a few more tests on whether it is possible to force using TLS above version 1.0 in PHP below version 5.6 but right now that doesn't seem to be the case... Maybe it is a good idea then to explicitly connect to tls:// instead of ssl:// anyway since this will at least prevent falling back to SSL v3.And yes, I have some code changes planned, one was mentioned in the next to last comment in #20462: getting rid of insecure SSL versions in HTTP_Request2_SocketWrapper::enableCrypto(). It may also make sense to use some newer knobs if we are running on PHP 5.4+ and/or PHP 5.6+ and to make changes outlined at http://phpsecurity.readthedocs.org/en/latest/Transport-Layer-Security-(HTTPS-SSL-and-TLS).htmlThat's a great article. So for the next release the outstanding SSL/TLS features are: * disable insecure SSL versions by default * in supported PHP/OpenSSL versions, set more secure SSL context options by default
Should we also distribute the ca bundle so peer verification works by default?I'd prefer not to, using system-wide bundle is a more robust solution. Need of CA files and possible ways to set them up are already documented: http://pear.php.net/manual/en/package.http.http-request2.config.php#package.http.http-request2.config.ssl