Hi, when I use the command php bin/console lexik:jwt:generate-keypair for generate the key, the console shows this error
`In GenerateKeyPairCommand.php line 151:
error:02001003:system library:fopen:No such process
`
O.S = Windows 10
PHP = 7.1
SYMFONY = 5
OPENSSL running
Looks like you are hitting a PHP bug that has been fixed in PHP 7.2: https://bugs.php.net/bug.php?id=60157
I get the same Error,
php: 7.3.26
symfony 5.2
Windows 10
$ php bin/console lexik:jwt:generate-keypair
In GenerateKeyPairCommand.php line 156:
error:02001003:system library:fopen:No such process
my php version
$ php --version
PHP 7.3.26 (cli) (built: Jan 5 2021 15:10:35) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.26, Copyright (c) 1998-2018 Zend Technologies
$ openssl version
OpenSSL 1.1.1i 8 Dec 2020
Any solution ?
I hit this bug as well and managed to figure out a work-around. For some reason, setting the environment variable for OPENSSL_CONF does not work. Not even putenv("OPENSSL_CONF=<path to openssl.cnf>"); works.
To work-around, provide the "config" parameter when using openssl functions. For example:
$new_key = openssl_pkey_new(array(
"private_key_bits" => 2048,
"private_key_type" => OPENSSL_KEYTYPE_RSA,
"config" => "<path to openssl.cnf>"
));
Hopefully someone can look into this because, wow- that was infuriating
I got the same error on windows :(
Hello i had the same issue and found this solution => https://stackoverflow.com/questions/66252709/error-system-libraryfopenno-such-process
I had this on Windows and it was caused by not having openssl installed.
choco install openssl
any update on this. same problem.
Seems like we can solve this with a new command option that allows passing the path to the openssl config file, right?
Hi guys got this error too maybe installing latest OpenSLL is the key because it works to me. Just go to this site and do the instruction given. https://slproweb.com/products/Win32OpenSSL.html. I HOPE I HELPED YOU GUYS <3
Installing OpenSSL with this upper link fixed this error for me too, thanks!
Thanks, It worked for me
Most helpful comment
I had this on Windows and it was caused by not having openssl installed.
choco install openssl