by Christoph Künkel.
Unfortunately I was too quick to post this. Although my proposed solution works for the call to openssl_pkey_new(), it subsequently fails for the call to openssl_sign() in lib\php-jwt\src\JWT.php. This function does not have a $config option.
Ok, then bite the bullet I thought and gave the web server access to the default path (which I apparently can't change). Then, the calls to openssl_pkey_new() work without providing the "config" member in $conf.
However, the call to openssl_sign() now fails with a new/different error code returned by openssl_error_string():
Ok, then bite the bullet I thought and gave the web server access to the default path (which I apparently can't change). Then, the calls to openssl_pkey_new() work without providing the "config" member in $conf.
However, the call to openssl_sign() now fails with a new/different error code returned by openssl_error_string():
error:24070079:random number generator:RAND_write_file:Cannot open file
I have no idea where this file is meant to be created. As it seems to be a temporary file, I checked both $_SERVER['TMP'] and $_SERVER['TEMP'] but both exist and are writable to the web server.
Any help appreciated, Christoph