ARACOOOL
@ARACOOOL
PHP Developer

Как настроить openssl php 5.5 на windows?

Не получается использовать openssl.
Настроил вроде все как полагается. Установил dll.
Закинул файлы libeay32.dll и ssleay32.dll в папку System32

И пытаюсь протестировать
$config = [
    'private_key_bits' => 512,
    'private_key_type' => OPENSSL_KEYTYPE_RSA,
];

// Create the private and public key
$res = openssl_pkey_new($config);
var_dump($res);


получаю false
  • Вопрос задан
  • 192 просмотра
Решения вопроса 1
ARACOOOL
@ARACOOOL Автор вопроса
PHP Developer
the OPENSSL_CONF environmental variable, if set, will be used as the path (including filename) of the configuration file.
the SSLEAY_CONF environmental variable, if set, will be used as the path (including filename) of the configuration file.
The file openssl.cnf will be assumed to be found in the default certificate area, as configured at the time that the openssl DLL was compiled. This is usually means that the default filename is c:\usr\local\ssl\openssl.cnf.
Ответ написан
Комментировать
Пригласить эксперта
Ответы на вопрос 1
skobkin
@skobkin
Гентушник, разработчик на PHP и Symfony.
Посмотрите, какую ошибку выдаёт openssl_error_string().
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы