PHP 5.6

PHP 5.6 SoapClient verify_peer With Self-Signed Certificate

By default, PHP 5.6 has verify_peer enabled for openssl connections. So if you use the SoapClient to connect via SSL to a soap server, you’ll likely see “Could not connect to host” connection failures. To fix this, you need to generate some certificates on the server running your PHP applications and making the Soap calls.