当前位置:网站首页>SSL证书格式转化的两种方法
SSL证书格式转化的两种方法
2022-06-30 02:16:00 【Racent_Y】
由于不同服务器类型支持的SSL证书格式不同,所以当你获得CA签发的SSL证书时,需要转化成所需证书文件格式,常见的SSL证书格式转化方法分享于此。
在转化之前,需要确认服务器支持哪种证书格式,上一篇常见SSL证书格式中提到。
SSL证书格式转化方法
WebTrust认证的CA机构签发的证书通常只提供PEM格式或PKCS#7格式,如需其他证书格式,可以在下面常用的两种方法中任选其一进行格式转化。
方法一:使用OpenSSL、Keytool转化
1.pem转换pfx
openssl pkcs12 -export -in 'test.pem' -inkey 'test.key' -out 'test.p12' -passout pass:123456
2.pem转换jks
openssl pkcs12 -export -in 'test.pem' -inkey 'test.key' -out 'test.p12' -passout pass:123456
keytool -importkeystore -srckeystore 'test.p12' -srcstoretype PKCS12 -destkeystore 'test.jks' -srcstorepass 123456 -deststorepass 123456
3.pfx转换pem
openssl pkcs12 -in test.p12 -passin pass:123456 -out test3.pem -nodes
4.pfx转换jks
keytool -importkeystore -srckeystore 'test.p12' -srcstoretype PKCS12 -destkeystore 'test.jks' -srcstorepass 123456 -deststorepass 123456
5.jks转换pem
keytool -importkeystore -srckeystore 'test.jks' -srcstoretype jks -destkeystore 'test.p12' -deststoretype PKCS12 -srcstorepass 123456 -deststorepass 123456
openssl pkcs12 -in test.p12 -passin pass:123456 -out test3.pem -nodes
6.jks转化pfx
keytool -importkeystore -srckeystore 'test.jks' -srcstoretype jks -destkeystore 'test.p12' -deststoretype PKCS12 -srcstorepass 123456 -deststorepass 123456
方法二:SSL证书格式转化工具
对于非专业人士,方法一显得有点复杂。锐成SSL证书转化工具只需要按要求提示上传相关证书文件,选择目标格式后即可完成转换,较为简单。如下图:
当转化为所需SSL证书格式后,即可着手安装SSL证书。
边栏推荐
- 005_ button
- (4) Blender source code analysis flash window display process
- Openlayers 3 built in interaction
- DHU programming exercise
- dhu编程练习
- AutoJS代码能加密吗?YES,AutoJS加密技巧展示
- DDoS attacks and destructive ripple effects against online gamers
- 【自然语言处理】【多模态】OFA:通过简单的sequence-to-sequence学习框架统一架构、任务和模态
- 【MySQL 04】使用MySQL Workbench 8.0 CE 备份及恢复Linux中的MySQL数据库
- 網上炒股安全麼?炒股需要開戶嗎?
猜你喜欢

希尔排序

Restore a 35k-55k Tencent Android Senior Engineer Interview

Implementation of a simple camera based on pyqt5

How to create a CSR (certificate signing request) file?
![[protection mode] segment descriptor](/img/23/19b12c496da437fbf03829b7b4e3b8.jpg)
[protection mode] segment descriptor

Le Code autojs peut - il être chiffré? Oui, présentation des techniques de chiffrement autojs

Recheck on February 15, 2022

Using grpcui to test asp Net core grpc service

Jenkins continuous integration environment build 8 (configure mailbox server to send build results)

一种跳板机的实现思路
随机推荐
DMX configuration
DHU programming exercise
Four, forty, fourhundred swatches
Widget uses setimageviewbitmap method to set bug analysis
網上炒股安全麼?炒股需要開戶嗎?
How does payment splitting help B2B bulk commodity transactions?
DHU programming exercise
Share the source code of the website of graduation student record
DDoS threat situation gets worse
Oppo mobile phone search
dhu编程练习
Share the source code of the website of graduation student record
Blue Bridge Cup stm32g431 - three lines of code for keys (long press, short press, click, double click)
DHU programming exercise
AutoJS代碼能加密嗎?YES,AutoJS加密技巧展示
SQL injection -day17
Matlab 2012a 绘制带箭头的线段
001_ layout
26.算法常用面试题
8 — router