I'm wondering what's going on with my php-fpm instance.
Compiled the PHP 5.4 from ports and everything works okay except the one thing. If I want to use a SSL transport via socket (no matters which method - just a SSL encryption) the interpreter throws me something weird. In this example I'm trying to send an e-mail via GMail's SMTP (which works only on secured SMTP port):
PHP Warning: fsockopen(): SSL: Unknown error: 0 in /...
PHP Warning: fsockopen(): Failed to enable crypto in /...
PHP Warning: fsockopen(): unable to connect to ssl://
smtp.gmail.com:587 (Unknown error) in /...
SSL appears in phpinfo's registered streams list. Even OpenSSL library on enabled modules. But I have no idea why it's failing to establish a secured connection to any server... For example, fsockopen returns false with no error message...
I've upgraded the ports tree and recompiled PHP. OpenSSL as well but still no idea. I set firewall_type="open" and nothing changed.
Been googling some time for this issue. Unfortunately found nothing.
Some info about env:
- FreeBSD 8.2 x86_64
- PHP-FPM 5.4
- pool configured with a chrooted environment
Any ideas?