A
A
Askar Fuzaylov2015-08-07 15:53:39
PHP
Askar Fuzaylov, 2015-08-07 15:53:39

How to set up openssl php 5.5 on windows?

Can't use openssl.
Everything seems to be set up as it should. Installed dll.
I threw the files libeay32.dll and ssleay32.dll into the System32 folder
And I'm trying to test

$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);

I get false

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Askar Fuzaylov, 2015-09-15
@ARACOOOL

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.

A
Alexey Skobkin, 2015-09-03
@skobkin

Look at the error that openssl_error_string() throws .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question