skip to Main Content

I’m trying to generate a set of keypairs that will be used to encode the to-be generated JSON Web Tokens.
But i get this error:

php bin/console lexik:jwt:generate-keypair
[critical] Error thrown while running command "lexik:jwt:generate-keypair". Message: "error:80000003:system library::No such process"

In GenerateKeyPairCommand.php line 161:

  error:80000003:system library::No such process  


lexik:jwt:generate-keypair [--dry-run] [--skip-if-exists] [--overwrite]

I already have openssl ext enabled in my php.ini

extension=openssl

2

Answers


  1. Chosen as BEST ANSWER

    So I tried to use the command again on git bash where openssl is installed but didn't work, so i generated the keys with openssl directly from it. To generate private key:

    openssl genrsa -out config/jwt/private.pem
    

    and to generate the public key:

    openssl rsa -in config/jwt/private.pem -pubout > config/jwt/public.pem
    

  2. Did you tried to execute openssl in a terminal? I think that on top of having the openssl php extension installed, you also need the package to be installed on your system.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search