当前位置:网站首页>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证书。
边栏推荐
- DDoS surge in mobile and data centers
- 007_ checkbox
- DDoS extortion attacks: what you need to know
- Vs realize quick replacement function
- dhu编程练习
- Restore a 35k-55k Tencent Android Senior Engineer Interview
- Large scale DDoS attacks and simulated DDoS tests against VoIP providers
- DMX的配置
- 桶排序
- What problems can cloud storage architecture solve for Devops?
猜你喜欢

云存储架构能解决 DevOps 的什么问题?

Can autojs code be encrypted? Yes, display of autojs encryption skills

SQL injection -day17

004_ icon
![[naturallanguageprocessing] [multimodality] ofa: unified architecture, tasks and modes through a simple sequence to sequence learning framework](/img/c9/7be54c428212d7226cbbbb4800fcdb.png)
[naturallanguageprocessing] [multimodality] ofa: unified architecture, tasks and modes through a simple sequence to sequence learning framework

Illustration Google V8 19: asynchronous programming (II): how does V8 implement async/await?

Knowledge payment cannot escape the essence of "anxiety"

UE5的蓝图节点拷贝到UE4后连线和属性值全部丢失了

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

How does payment splitting help B2B bulk commodity transactions?
随机推荐
DDoS threat situation gets worse
dhu编程练习
003_ color
(4) Blender source code analysis flash window display process
[MySQL 05] SUSE 12 SP5 modifies the MySQL password for the first time after installing MySQL
冒泡排序
How difficult is the PMP Exam under the new syllabus? Comprehensive analysis
Traffic, but no sales? 6 steps to increase website sales
Electron FAQ 54 - make your own fireworks based on electron
假離婚變成真離婚,財產怎麼辦
DMX configuration
How do PMP candidates respond to the new exam outline? Look!
Learning C language from scratch day 026
The national industrial information security development research center issued the report on industrial information security situation in 2021
DMX的配置
桶排序
DDoS "fire drill" service urges companies to prepare
Alphassl digital certificate
DDoS attacks - are we really at war?
dhu编程练习