“导出私钥”是什么意思?意思是( Makecert -pe )?

发布于 2024-10-03 20:57:46 字数 270 浏览 0 评论 0原文

通过指定 –pe 开关(使用 Makecert 实用程序)我们创建一个私有的 密钥可导出。

a) 私钥可导出是什么意思?我们可以将创建的 .pvk 文件(包含私钥)复制到另一个系统并在那里使用它吗?

b) 如果是这样,那么我假设只有在要导出私钥时才会创建 .pvk?!那么,当我们不想导出私钥并且在创建证书时不指定 –pe 开关时,我们如何使用/获取私钥呢?

谢谢

By specifying a –pe switch ( using
Makecert utility ) we make a private
key exportable.

a) What is it meant by private key being exportable? That we can copy the created .pvk file ( containing private key ) to another system and use it there?

b) If so, then I assume .pvk is only created if private key is to be exported?! Thus, how do we use/obtain private key when we don't want to export it and thus don't specify –pe switch when creating a certificate?

thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柠北森屋 2024-10-10 20:57:46

Makecert 将密钥对的私钥存储在本地计算机的安全区域中。如果私钥未标记为可导出,则系统将不允许任何人将该私钥导出到可在另一台计算机上复制或安装的可传输证书文件。

这意味着,如果您没有为 MakeCert 指定 -pe 命令行选项,则创建的证书只能用于解密该计算机上的数据。公钥可以分发给其他人用来加密数据,但只有本机可以使用私钥解密该数据。

这对于最大程度的安全来说是一件好事。机器的用户或网络攻击者无法仅通过将私钥导出到文件并携带该文件运行来窃取私钥。

然而,它并不是最方便的易用性。如果您打算让多台计算机解密使用公钥加密的数据,则需要使用可导出选项创建密钥,以便您可以导出公钥/私钥对并将其安装在要解密数据的其他计算机上在。

Makecert stores the private key of a key pair in a secure area of the local machine. If the private key is not marked as exportable, then the system will not allow anyone to export that private key to a transportable certificate file that can be copied or installed on another machine.

That means, if you don't specify the -pe command line option to MakeCert, the certificate created can only be used to decrypt data on that machine. The public key can be handed out for others to use to encrypt data, but only this machine can decrypt that data using the private key.

This is a good thing for maximum security. A user of the machine or a network attacker cannot steal the private key simply by exporting it to a file and running off with the file.

However, it's not the most convenient for ease of use. If you intend for multiple machines to decrypt data encrypted with the public key, then you will need to create the key with the exportable option so that you can export the public/private key pair and install them on the other machines you want to decrypt data on.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文