当前位置:网站首页>openssl查看证书信息
openssl查看证书信息
2022-08-10 18:15:00 【51CTO】
打印证书的过期时间
openssl x509 -in signed.crt -noout -dates
打印出证书的内容:
openssl x509 -in cert.pem -noout -text
打印出证书的系列号
openssl x509 -in cert.pem -noout -serial
打印出证书的拥有者名字
openssl x509 -in cert.pem -noout -subject
以RFC2253规定的格式打印出证书的拥有者名字
openssl x509 -in cert.pem -noout -subject -nameopt RFC2253
在⽀持UTF8的终端⼀⾏过打印出证书的拥有者名字
openssl x509 -in cert.pem -noout -subject -nameopt oneline -nameopt -escmsb
打印出证书的MD5特征参数
openssl x509 -in cert.pem -noout -fingerprint
打印出证书的SHA特征参数
openssl x509 -sha1 -in cert.pem -noout -fingerprint
把PEM格式的证书转化成DER格式
openssl x509 -in cert.pem -inform PEM -out cert.der -outform DER
把⼀个证书转化成CSR
openssl x509 -x509toreq -in cert.pem -out req.pem -signkey key.pem
给⼀个CSR进⾏处理,颁发字签名证书,增加CA扩展项
openssl x509 -req -in careq.pem -extfile openssl.cnf -extensions v3_ca -signkey key.pem -out cacert.pem
给⼀个CSR签名,增加⽤户证书扩展项
openssl x509 -req -in req.pem -extfile openssl.cnf -extensions v3_usr -CA cacert.pem -CAkey key.pem -CAcreateserial
查看csr⽂件细节:
openssl req -in my.csr -noout -text
边栏推荐
- 从Delta 2.0开始聊聊我们需要怎样的数据湖
- 面试题 04.12. 求和路径-dfs+辅助数组法
- 容器化 | 在 S3 实现定时备份
- 【FAQ】OpenHarmony与HarmonyOS的有什么区别?
- 【HMS core】【FAQ】AR Engine、Analytics Kit、Video Editor Kit、Image Kit、Map Kit典型问题合集2
- 【2015】【论文笔记】等离子光混合器THz辐射的光谱——
- 智能出价策略如何影响广告效果?
- 剑指 Offer II 034. 外星语言是否排序-辅助数组法
- 三坐标雷达显示软件 SPx Viewer-3D
- Go 语言快速入门指南:第四篇 与数据为舞之数组
猜你喜欢
Before opening a futures account, you must confirm the handling fee as soon as possible
Active users of mobile banking grew rapidly in June, hitting a half-year high
Toronto Research Chemicals农药检测丨甲硫威
Mysql index, transaction and storage engine
测试接口出现“data“: “Full authentication is required to access this resource“凭证已过期
Interface test advanced interface script using -apipost (pre/post execution script)
Product Description丨MobPush fast integration method on Android side
Making Pre-trained Language Models Better Few-Shot Learners
Toronto Research Chemicals农药检测丨Naled-d6
Keil5退出仿真调试卡死的解决办法
随机推荐
Toronto Research Chemicals萜烯分析丨(+)-柠檬烯
「NewSQL技术」Greenplum 6中的OLTP负载性能提升60倍以上
VoLTE基础自学系列 | 3GPP规范解读之Rx接口(上集)
文档标题能否支持公式
AVFrame相关api内存管理
zabbix配置触发器
Scala中使用 Jackson API 进行JSON序列化和反序列化
Toronto Research Chemicals BTK抑制剂丨ACP-5197
postgis空间数据导入及可视化
Making Pre-trained Language Models Better Few-Shot Learners
机器人控制器编程实践指导书旧版-实践八 机器人综合设计
LeetCode 198:打家劫舍
机器人控制器编程整理汇总-辞旧迎新-
【FAQ】【Push Kit】推送服务,回执配置一直报错、回执过期修改、怎么删除配置的回执
2022-08-09 学习笔记 day32-IO流
c语言进阶篇:柔性数组
微信小程序富文本标签rich-text
关于技术分享的思考
【FAQ】【Push Kit】 华为怎么设置角标
pip安装时 fatal error C1083 无法打开包括文件 “io.h” No such file or directory