在命令行中输入 openssl 的密码导致崩溃

在命令行中输入 openssl 的密码导致崩溃

我不确定这是否与 .OhMyZsh 安装有关。为什么我的密码输入不被接受?

➜  Documents openssl rsa -in my_private.pem -noout -text
Enter pass phrase for my_private.pem:
User interface error
4314234176:error:2807106B:UI routines:UI_process:processing error:crypto/ui/ui_lib.c:545:while reading strings
unable to load Private Key
4314234176:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:crypto/evp/evp_enc.c:610:
4314234176:error:0906A065:PEM routines:PEM_do_header:bad decrypt:crypto/pem/pem_lib.c:461:
➜  Documents dddd
zsh: command not found: dddd

OpenSSL 1.1.1l 2021 年 8 月 24 日

编辑:

这是 Mac M1 (Silicon) 中的一个问题。当我在 Rosetta 下运行终端时,它运行正常。我希望有人能解决这个问题。

相关内容