help with SSL access within PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 Technologies


Can you help? Thanks.



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux