私钥密码的用途是什么?
有时,我看到用户使用私钥和密码登录。
那么,这是否意味着公钥存储在登录服务器上?
密码短语的目的是什么?
Sometimes, I see users use a private key and passphrase to log in.
So, does it mean the public key is stored on the log in server?
What's the purpose of the pass phrase?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,服务器存储公钥,客户端存储私钥。防止被盗私钥对小偷有用的安全功能是对其进行加密。密码允许您解密私钥以使用它。没有密码,密钥就没用。
通常,您可以通过查看密钥周围的 PEM 标头来了解密钥是否已加密。例如,使用 PEM 格式的 3DES 加密的 DSA 私钥可能如下所示:
而 PEM 格式的未加密 DSA 私钥不会有表明其已加密的标头:
Yes, the server stores the public key, and the client stores the private key. A security feature to prevent stolen private keys from being useful to the thief is to encrypt them. The passphrase allows you to decrypt the private key to use it. Without the passphrase, the key is useless.
You know whether a key is encrypted generally by looking at the PEM header surrounding it. For example, a DSA private key encrypted with 3DES in PEM format might look like this:
Whereas an unencrypted DSA private key in PEM format would not have a header saying it's encrypted: