Инсталиране/Конфигуриране
PHP Manual

Инсталация

To use PHP's OpenSSL support you must also compile PHP --with-openssl[=DIR].

Забележка: Note to Win32 Users
За да работи това разширение, трябва съответните DLL файлове да бъдат в системния път (PATH) на Windows. За повече информация, вижте въпросът от FAQ, озаглавен "Как да добавя PHP директорията към PATH при Windows" за повече информация относно това. Въпреки че копирането на DLL файлове от директорията на PHP в системната папка на Windows работи, не е препоръчително.Това разширение изисква следните файлове да бъдат в PATH: libeay32.dll
Additionally, if you are planning to use the key generation and certificate signing functions, you will need to install a valid openssl.cnf file on your system. As of PHP 4.3.0, we include a sample configuration file in our win32 binary distributions. PHP 4.3.x and 4.4.x has the file in the openssl directory. PHP 5.x and 6.x has the file in the extras/openssl directory. If you are either using PHP 4.2.x or missing the file, you can obtain it from » the OpenSSL binaries page or by downloading a recent PHP release. Be aware that Windows Explorer hides the .cnf extension by default and says the file Type is SpeedDial.
PHP will search for the openssl.cnf using the following logic:


In your installation, you need to decide whether to install the configuration file at c:\usr\local\ssl\openssl.cnf or whether to install it someplace else and use environmental variables (possibly on a per-virtual-host basis) to locate the configuration file. Note that it is possible to override the default path from the script using the configargs of the functions that require a configuration file.


Инсталиране/Конфигуриране
PHP Manual