您现在的位置是: 首页 > 运维 使用 OpenSSL 将 pfx 格式证书转为 pem 格式
使用 OpenSSL 将 pfx 格式证书转为 pem 格式
2020-09-04 【运维】 2614人已围观 4752次浏览
简介使用 OpenSSL 将 pfx 格式证书转为 pem 格式
在用到比如 PHP 的 openssl_pkcs7_sign 方法时,由于该函数只能识别 pem 格式证书,在部分只有 pfx 证书的情况下,将无法使用,这里可以通过 OpenSSL 来进行证书格式转换
执行过程中会要求输入导出 pfx 证书时输入的密码
不带 key 的客户端证书提取
openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem
私有 key 的证书提取
openssl pkcs12 -in filename.pfx -nocerts -out key.pem
很赞哦! (0)
上一篇:Vue 路由跳转后不在顶部
相关文章
- CentOS 安装Python3
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
- linux下各文件夹的结构说明及用途介绍
- ElasticSearch安装踩坑指南
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- 常见端口号
- Linux no space left on device 出现设备上没有空间问题
- Oracle ORA-12541:TNS:no listener错误解决方法
- Debian/Ubuntu无netstat命令解决方案
- CentOS 7 安装 Golang 环境
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- Debian apt 使用国内镜像
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- nuxt 项目完整部署方案
站长推荐
猜你喜欢
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- Mac 设置允许任何来源
- idea去掉Smart commands execution提示
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- sentinel directive while not in sentinel mode 问题解决
- 迁移 Docker 目录
- Vue 路由跳转后不在顶部
- 在更新python时出现dyld: Library not loaded: /usr/local/opt/libpsl/lib/libpsl.5.dylib,Reason: image not found错误解决方案
- SpringBoot 启动测试时出现提示 Test class should have exactly one public zero-argument constructor
- SpringBoot 定时任务 多线程