PHP reports that it must be compiled --with-openssl in order to use its wrapper support for OpenSSL, although that appears not to be completely true.
http://www.php.net/openssl