note 58581 added to ref.openssl
| From: | beckman at purplecow dot com | Date: | Tue, 08 Nov 2005 20:07:12 +0000 |
| Subject: | note 58581 added to ref.openssl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-98272@lists.php.net to get a copy of this message | ||
FreeBSD Ports tree php5-openssl uses openssl-0.9.8a. This is a problem, as if you install these two
ports and attempt to open an HTTPS URL within PHP, it will fail with this error from
openssl_error_string(): error:140A90A1:SSL routines:func(169):reason(161) which is
SSL_R_LIBRARY_HAS_NO_CIPHERS or "library has no ciphers"
This is because the openssl library now requires you to load your ciphers manually -- all ciphers
are not automatically loaded for you.
I don't believe the php5-openssl module has been updated to do this before opening an SSL
connection (as of 5.0.5).
Using openssl-0.9.7i seems to work; symlinking libcrypto.so.3 to libcrypto.so.4 prevents the
php5-openssl port from trying to install openssl-0.9.8a. So install openssl-stable (0.9.7i) from
ports first, symlink 2nd, then install php5-openssl 3rd, and you should be OK.
----
Manual Page -- http://www.php.net/manual/en/ref.openssl.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58581
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58581&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58581&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58581&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58581&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58581&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58581&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58581&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58581&report=yes
Search -- http://master.php.net/manage/user-notes.php