Openssl无法使用PuttyGen私钥解密邮件
问题描述:
我使用PuttyGen创建了公钥和私钥,然后使用公钥来加密邮件。 我现在想用用下面的命令的私钥来解密这样的消息:Openssl无法使用PuttyGen私钥解密邮件
echo [my encrypted message] | openssl enc -d -base64 -A | openssl rsautl -decrypt -inkey ~/.ssh/private.ppk
,但我得到的错误:
unable to load Private Key
6870300:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:707:Expecting: ANY PRIVATE KEY
私钥看起来是这样的(实际键略):
PuTTY-User-Key-File-2: ssh-rsa
Encryption: none
Comment: rsa-key-20170724
Public-Lines: 6
[...]
Private-Lines: 14
[...]
Private-MAC: [...]
怎么了?