Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble with generate-keypair command on windows #1252

Open
FerJoTello opened this issue Nov 11, 2024 · 0 comments
Open

Trouble with generate-keypair command on windows #1252

FerJoTello opened this issue Nov 11, 2024 · 0 comments

Comments

@FerJoTello
Copy link

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.

image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant