Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1772156
  • 博文数量: 184
  • 博客积分: 10122
  • 博客等级: 上将
  • 技术积分: 5566
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-08 12:32
文章存档

2011年(1)

2008年(183)

我的朋友

分类: LINUX

2008-03-08 12:05:29

[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]#
阅读(1985) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~