Chinaunix首页 | 论坛 | 博客
  • 博客访问: 542665
  • 博文数量: 375
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 15
  • 用 户 组: 普通用户
  • 注册时间: 2013-09-20 10:21
文章分类

全部博文(375)

文章存档

2015年(1)

2014年(374)

分类: LINUX

2014-08-18 13:34:10

[root@monitor ssl.crt]# openssl x509 -in mail.bob.com.crt -startdate -noout
notBefore=Feb 19 02:18:10 2008 GMT
[root@monitor ssl.crt]#
 

[root@monitor ssl.crt]# openssl x509 -in mail.bob.com.crt -startdate -noout |cut -d '=' -f 2 |xargs -i date -d {}
二  2月 19 10:18:10 CST 2008
[root@monitor ssl.crt]#
 

[root@monitor ssl.crt]# openssl x509 -in mail.bob.com.crt -enddate -noout    
notAfter=Feb 18 02:18:10 2009 GMT
[root@monitor ssl.crt]#
 
 
[root@monitor ssl.crt]# openssl x509 -in mail.bob.com.crt -enddate -noout |cut -d '=' -f 2 |xargs -i date -d {}    
三  2月 18 10:18:10 CST 2009
[root@monitor ssl.crt]#
 

[root@monitor ssl.crt]# openssl x509 -in mail.bob.com.crt -dates -noout 
notBefore=Feb 19 02:18:10 2008 GMT
notAfter=Feb 18 02:18:10 2009 GMT
[root@monitor ssl.crt]#
阅读(751) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~