将 .pem 转换为 .crt 和 .key [英] Convert .pem to .crt and .key

查看:123
本文介绍了将 .pem 转换为 .crt 和 .key的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我从 .pem.crt 和私钥 .key 文件的正确方法/命令> 档案?我只是读到它们可以互换,但不知道如何互换.

Can anyone tell me the correct way/command to extract/convert the certificate .crt and private key .key files from a .pem file? I just read they are interchangable, but not how.

推荐答案

我能够使用这个将 pem 转换为 crt:

I was able to convert pem to crt using this:

openssl x509 -outform der -in your-cert.pem -out your-cert.crt

这篇关于将 .pem 转换为 .crt 和 .key的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆