Search code examples
windowsopensslaesssh-keyslexikjwtauthbundle

'openssl genrsa' doesn't work when I use AES


I have a problème when I try to generate a Ssh Key as requested in the instructions of this Symfony Bundle : LexikJWTAuthenticationBundle

When I use this command :

openssl genrsa -out config/jwt/private.pem -aes256 4096

The process doesn't finish, here is what I have : openssl genrsa with AES

But it works perfectly without the use of AES (either: -aes256 or 128 or other ..)

Do you know why ?

(Then, do you think I can continue without using AES ?)

Thank you.


Solution

  • I had the same problem, when I was using openssl from my Git Bash (command line installed with git on Windows, and openssl is coming by default with it). Later on, I installed OpenSSL on windows itself, you can can download it from here, add it in path variables in your pc, then you would be able to use it from your CMD anywhere and it works the same way as it's described in JWT docs.

    Hope it could help you and someone else.