【问题标题】:Can't genrate RSA private key with LexikJWTAuthenticationBundle无法使用 LexikJWTAuthenticationBundle 生成 RSA 私钥
【发布时间】:2020-10-16 03:09:54
【问题描述】:

我正在使用这个库并关注它是documentation。在“生成 SSH 密钥”部分中提到我必须执行这些命令:

mkdir -p config/jwt
openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096
openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout

我尝试执行这个命令:

openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096

但是当它要求我输入密码时,我无法输入任何内容(因此无法执行下一个)。 我尝试在 Windows 终端、VS Code 终端,甚至 git bash 中输入它,但仍然无法正常工作。

这是一个已知问题吗?如果有,有解决办法吗?

我想指出,在 git bash 上,它仍然被 +++++++ 阻止,并且它不要求输入密码。

我使用的是 Windows 10、Symfony 4.4.15、API 平台 2.5。 OpenSSL 命令对我有用。

【问题讨论】:

    标签: openssl jwt api-platform.com jwt-auth lexikjwtauthbundle


    【解决方案1】:

    这是与security 相关的正常行为。只需输入短语并按Enter

    【讨论】:

    • 我知道需要输入短语 pass,但正如我之前解释的那样,我无法输入任何内容,那就是 pb
    猜你喜欢
    • 2011-07-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-07
    • 1970-01-01
    • 2011-08-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多