02.openssl-密钥的格式转换
来源:互联网 发布:移动4g网络怎么设置dns 编辑:程序博客网 时间:2024/06/08 18:08
1.PEM and DER Conversion(格式转换)
convert a certificate from PEM to DER format:
$ openssl x509 -inform PEM -in fd.pem -outform DER -out fd.der
To convert a certificate from DER to PEM format:
$ openssl x509 -inform DER -in fd.der -outform PEM -out fd.pem
2.PKCS#12 (PFX) Conversion
$ openssl pkcs12 -export -name “My Certificate” -out fd.p12 -inkey fd.key -in fd.crt -certfile fd-chain.crt
命令:
$ openssl pkcs12 -in fd.p12 -nocerts -out fd.key -nodes
$ openssl pkcs12 -in fd.p12 -nokeys -clcerts -out fd.crt
$ openssl pkcs12 -in fd.p12 -nokeys -cacerts -out fd-chain.crt
3.PKCS#7 Conversion
To convert from PEM to PKCS#7, use the crl2pkcs7 command:
$ openssl crl2pkcs7 -nocrl -out fd.p7b -certfile fd.crt -certfile fd-chain.crt
To convert from PKCS#7 to PEM, use the pkcs7 command with the -print_certs switch:
openssl pkcs7 -in fd.p7b -print_certs -out fd.pem
- 02.openssl-密钥的格式转换
- 用 OPENSSL 生成不同格式的密钥
- .NET使用OpenSSL生成的pem密钥文件(增加size为2048的密钥转换)
- openssl rsa密钥格式的问题,解决了php和c++协同开发的密钥格式问题
- Linux openssl生成RSA格式密钥
- openssl证书格式转换
- Openssl格式转换
- OpenSSL中证书格式的区别以及格式的转换
- 使用OpenSSL生成和转换RSA密钥
- Openssl证书格式,以及转换
- openssl的证书格式转换命令,这里备注下
- RSA的密钥把JAVA格式转换成C#的格式(一)
- RSA的密钥把JAVA格式转换成C#的格式(二)
- SSH的密钥转换
- openssl对rsa密钥的管理用法
- 使用openssl进行证书格式转换
- 使用openssl进行证书格式转换
- 使用openssl进行证书格式转换
- CodeForces
- zedboard与linux系统ping通的问题?
- C语言中字符串与整数的相互转换
- MySql知识点总结
- POJ-2536 Gopher II(二分图最大匹配)
- 02.openssl-密钥的格式转换
- 集合(常用集合的底层原理)
- 三层交换机简介
- json_encode中文不转译
- 面试-剑指offer-数组中出现次数超过一半的数字
- vue使用vue-router获取链接中传入参数
- Vue2.0 和 Vue1.0——生命周期和钩子函数的一些理解
- 计算机一开始识别的并不是C语言
- 最小生成树普里姆算法--C语言实现