ralphschindler/zf2 — pull request #35 by shevron (2012-08-23 20:35:02+00:00)
Title: Attempt to semi-fix ZF2-490 

This attempts to improve ZF2-490 by providing a better error message if the problem is suspected to be a missing or invalid SSL CA path setting.

There are two main changes:
1. The SSL encryption is now separate from the actual TCP connection stage. This allows to catch SSL errors as opposed to TCP level connection errors
2. If an SSL error occurs, we check if peer verification is enabled and no CA path was set, in which case we provide a nicer error message suggesting what the problem is

I recommend a note in the docs will also be added pointing people in the right direction to set the sslcapath properly.