help with SSL access within PHP
| From: | Wesley Peng | Date: | Tue, 02 Jun 2020 09:07:44 +0000 |
| Subject: | help with SSL access within PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-327182@lists.php.net to get a copy of this message | ||
Hi
I run the command below failed:
$ echo 'fsockopen("tls://mail.sample.com",993,$errno,$errmsg,15);'|php -a
Interactive mode enabled
PHP Warning: fsockopen(): Failed to enable crypto in php shell code on line 1
PHP Warning: fsockopen(): unable to connect to tls://mail.sample.com:993 (Unknown error) in php shell code on line 1
mail.sample.com is my mailserver domain, who has regular FQDN and SSL certs.
But this worked just few days ago, it doesn't work this day until I found it.
PHP version:
$ php -v
PHP 7.0.33-0ubuntu0.16.04.15 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.33-0ubuntu0.16.04.15, Copyright (c) 1999-2017, by Zend TechnologiesCan you help? Thanks.