PHP 5.6, 7.0 Fails to connect via SSL / TLS
Starting at PHP 5.6, PHP does a verify of the SSL certificate and if it fails to the connection is terminated and will return a failed connection error. To get around this, you need to change the verify_peer and verify_peer_name in the stream /…