Answer the question
In order to leave comments, you need to log in
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);
Answer the question
In order to leave comments, you need to log in
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question