安装.cer证书并将证书从.cer格式转化为.pem格式

## 安装.cer证书并将证书从.cer格式转化为.pem格式

### 安装.cer证书到本地 

打开*运行*窗口 

输入MMC.exe, 单击*确定*

在打开的控制台1的窗口中。 

选择*文件*, 选择*添加或删除管理单元*  

**可用的管理单元**中, 选择*证书* 

单击*添加* 

现在, 你的所选管理单元窗口中将会出现*证书* 

单击*确定* 

选择*Computer account* 

单击*下一步* 

选择*Local computer: (the computer this consoled is running on)* 

单击*完成* 

在添加或删除管理单元中, 单击*确定* 

在左侧导航区域中, 单击*证书 - 当前用户* 

单击*个人*, 选择*所有任务*, 选择*导入* 

**证书导入向导**中, 单击*下一步* 

在指定要导入的文件中, 单击*浏览*

选择你的.cer证书。 

单击*下一步* 

选择*Place certificates in the following store* 

确认在Certificate Store中*个人*被选中。 

单击*下一步*  

单击*完成* 

### 将证书从.cer格式转到.pem格式 

安装

[openssl](https://www.openssl.org/source/) 

运行如下命令 

    openssl x509 -inform der -in certificate.cer -out certificate.pem

 

原文地址:https://www.cnblogs.com/qixue/p/5939058.html