How came out of nowhere?

Em
4

$ privkey = openssl_pkey_new (array ()
"private_key_bits" => 2048,
"private_key_type" => OPENSSL_KEYTYPE_RSA,
));

Yesterday the issue still worked. Not today. Neither on the server nor on my laptop.

How can this happen if you have not changed anything?

Can someone see if the output is false?

pu

Var_dump ($ privkey);

What does that bring back to you?

Em

Hi, false instead of a resource. But I found the problem. I had openSSL installed and removed. I did not think that would affect the functionality of PHP. Now i have reinstalled openSSL and behold, it works again. But thanks anyway, for reporting. Of course you get the award of the best answer.

Em

If you use phpinfo (); out there spits out: openssl default config: C: \ Program Files \ Common Files \ SSL / openssl.cnf.
But there's no file under this path. Also the folder SSL does not exist. But on my local system (Lapop) already. However, I installed XAMPP and WAMP on the server. If I can copy the folder from the laptop to the server, so I have the openssl.cnf there? Guess that this is not possible. I wanted to create it during certificate creation, but that just did not work out. This just did not work: "set OPENSSL_CONF = C: \ Program Files \ OpenSSL-Win64 \ bin \ openssl.cfg"

pu

Nice that you could solve the problem.