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 / socket options per socket connection.  Or use a valid SSL certificate.  Please see http://php.net/manual/en/migration56.openssl.php for more info.
  • 22 Users Found This Useful
Was this answer helpful?

Related Articles

PHP settings and the .user.ini file

Most settings for PHP can be configured via a file called ".user.ini" as defined by the...

Which PHP versions do you support on shared hosting?

We currently support the following PHP versions on our shared hosting servers: 5.6 7.1 7.2...

How to create a .htaccess file

Creating a .htaccess is easier then it sounds. You can create an .htaccess file in any text...

Sending mail via PHP / sendmail

Using PHP's mail() function and/or sendmail will sometimes cause anti-spam filters to filter out...

http Error codes

The following are http status and error codes that are returned for each file access via a web...