Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试通过 openssl 工具加密一些数据,问题是如何在此命令中为 private.key 设置密码:
openssl smime -sign -signer /var/www/protected/keys/ym.pem -inkey /var/www/protected/keys/ym.key -nochain -nocerts -outform PEM -nodetach
对于那些面临同样问题的人:以这种方式从私钥中删除密码:
openssl rsa -in privateKey.pem -out newPrivateKey.pem