Trouble with generate-keypair command on windows
Opened this issue · 0 comments
For php 8.1.10 & LexikJWTAuthenticationBundle version 2.21.0 running on windows 11:
When using public-private keys to generate JWTs, it is necessary to have stored these keys and it is supposed that php bin/console lexik:jwt:generate-keypair
command helps to create the keypair. Although, I was having problems executing the command obtaining the error:02001003:system library:fopen:No such process
error.
I found on this stackoverflow post that the process requires OpenSSL
library to be installed on the OS.
It will be useful to have this as an important note on the docs, since it is required for an appropiate configuration and it is not specified anywhere; I believe that this error does not appear using a docker image or a different OS rather than windows or having some extra php configuration that it is not specified.
If anyone can check this scenario, just as an improve for the docs.
Pd. To solve the issue I had to run openssl
command by hand and the jwt was being generating well, but it may not be the best solution.