非对称密钥容器的相互转换(例如:X.509、PGP、OpenSSH)
非对称加密密钥基本上可以在主要密钥容器格式之间相互转换吗? 例如,我可以将 X.509 密钥文件转换为 PGP 或 OpenGPG 密钥文件吗?
并且 - 假设答案是肯定的 - 以任何格式保存一对密钥并转换为该场合所需的任何容器文件格式是否“安全中立”?
我对为 X.509、OpenGPG 和 SSH 维护这么多密钥对感到有点厌倦,因为它们的核心都是 RSA。
Are asymmetrical cryptographic keys fundamentally inter-convertible between the major key container formats? For example, can I convert an X.509 key file into a PGP or OpenGPG key file?
And--assuming the answer is yes--is it "security neutral" to keep one key pair in whatever format and convert into whichever container file format is needed for the occasion?
I'm getting a little tired of maintaining so many key pairs for X.509, OpenGPG, and SSH, when they're all RSA at the heart.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是和否:是的,嵌入到证书和私钥中的 RSA 密钥只是数字。 您可以从证书中提取它们并使用它们来构建其他格式的密钥。 这通常是为了在不同的证书格式之间进行转换。
PGP 对 S/MIME 的 X.509 有一定支持,但无法逐字使用 X.509 私钥。
SSH 对直接使用 X.509 密钥和证书有一些测试版支持。
Yes and no: yes, the RSA keys embedded into certificates and privkeys are just numbers. You can extract them from the certificate and use them to build keys in other formats. This is commonly done to convert between different certificate formats.
PGP has some support for X.509 for S/MIME, but no ability to use X.509 privkeys verbatim.
SSH has some beta support for directly using X.509 keys and certificates.
您将在那里找到如何在这些容器之间转换 kes:
http ://sysmic.org/dotclear/index.php?post/2010/03/24/Convert-keys- Betweens-GnuPG,-OpenSsh-and-OpenSSL
You will found how to convert kes between these containers there:
http://sysmic.org/dotclear/index.php?post/2010/03/24/Convert-keys-betweens-GnuPG,-OpenSsh-and-OpenSSL
我还想看看 OpenSSL。 它有很多不同的 -in 和 -out 函数,可能能够转换证书。 从一种类型到另一种类型。
看看 http://marc.info/?l= openssl-users&m=105162569405053&w=2
I'd also have a look at OpenSSL. It has so many different -in and -out functions that will likely be able to convert certs. from one type to the other.
Have a look at http://marc.info/?l=openssl-users&m=105162569405053&w=2