当前位置:网站首页>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证书。
边栏推荐
- 207. curriculum - graph theory, depth traversal
- DHU programming exercise
- CTF入门学习(Web方向)
- 005_ button
- DDoS threat situation gets worse
- 每周推荐短视频:为什么理论正确但得不到预期结果?
- 快速排序
- Copy entire directory to output folder maintain folder structure- Copy entire directory to output folder maintaining the folder structure?
- DHU programming exercise
- Recheck on February 15, 2022
猜你喜欢

What problems can cloud storage architecture solve for Devops?

归并排序

有流量,但没有销售?增加网站销量的 6 个步骤

CTF introductory learning (WEB direction)

widget使用setImageViewBitmap方法设置bug分析

Simple distinction between break and continue

图解 Google V8 # 19 :异步编程(二):V8 是如何实现 async/await 的?

Using face_ Recognition library reports an error reason: cudnn_ STATUS_ NOT_ SUPPORTED

003_ color

选择排序
随机推荐
Can autojs code be encrypted? Yes, display of autojs encryption skills
有流量,但没有销售?增加网站销量的 6 个步骤
如何使用SMS向客户传递服务信息?指南在这里!
Alphassl digital certificate
Using face_ Recognition library reports an error reason: cudnn_ STATUS_ NOT_ SUPPORTED
scp远程拷贝命令记录
假離婚變成真離婚,財產怎麼辦
每周推荐短视频:为什么理论正确但得不到预期结果?
云存储架构能解决 DevOps 的什么问题?
Jenkins continuous integration environment build 8 (configure mailbox server to send build results)
What is a dangling pointer- What is a dangling pointer?
The national industrial information security development research center issued the report on industrial information security situation in 2021
007_ checkbox
Let‘sPlayCurling
DMX configuration
How difficult is the PMP Exam under the new syllabus? Comprehensive analysis
How to display all keys through redis cli- How to show ALL keys through redis-cli?
图解 Google V8 # 19 :异步编程(二):V8 是如何实现 async/await 的?
209. minimum length subarray - sliding window
dhu编程练习