0
$ openssl genrsa -out config/jwt/private.pem -aes256 4096
Generating RSA private key, 4096 bit long modulus (2 primes)
....................++++
...............................................................++++

And stuck here since an hour.

I'm using following bundle in symfony 5.3

composer require "lexik/jwt-authentication-bundle"

When I ran below command I got following error:

$ php bin/console lexik:jwt:generate-keypair

[critical] Error thrown while running command ""lexik:jwt:generate-keypair"". Me ssage: "There are no commands defined in the "lexik:jwt" namespace."

There are no commands defined in the "lexik:jwt" namespace.

So I ran following Commands but taking ages but didn't generate the keys.

openssl genrsa -out config/jwt/private.pem -aes256 4096
openssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pem
Demi God
  • 87
  • 9

0 Answers0