Inter-convertability of asymmetric key containers (eg: X.509, PGP, OpenSSH)

ⅰ亾dé卋堺 提交于 2019-12-05 11:47:12

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.

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

JJarava

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!