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

问题描述

我已经购买了SSL证书,并且已经收到证书和一个.pem文件作为私钥?来自供应商;现在,我需要将.pem密钥转换为bitnami Redmine Apache Web服务器的.key,以使其正常工作.

I already have purchased SSL certificate and i have received certificate and a .pem file as a private key? from the supplier; now i need to convert this .pem key into .key for bitnami Redmine Apache web server in order to make it work.

如何执行此操作,需要使用什么程序或命令?就使用Openssl等而言,我是一个新手.

How do I go about doing this what what program or commands to do this? I am a newbie in terms of using Openssl etc to do this.

任何建议将不胜感激!

谢谢.

推荐答案

我假设您需要PEM私钥的DER编码版本.所以:

I assume you want the DER encoded version of your PEM private key. So :

openssl rsa -outform der -in private.pem -out private.key

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

09-03 12:56