After upgrading to PHP 5.6 I get an error when trying to connect to a server via fsockopen()..
fsockopen()
The certificate on the server (host) is self-signed
Firstable, make sure that you Antivirus software doesn't block SSL2. Because I could not solve a problem for a long time and only disabling the antivirus helped me