How do I determine the expiration date of a p12 certificate?
来源:互联网 发布:java开发项目经历 编辑:程序博客网 时间:2024/05/16 06:33
First you will need to translate the pkcs12 certificate into a PEM certificate.
The PEM certificate is only needed temporarily and can later be removed.
1
2
3
4
5
$ openssl pkcs12 -
in
certificate.p12 -out tempcrt.pem
Enter Import Password:
MAC verified OK
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
Now, we use the tempcrt.pem that we generated to determine the expiration date. The first method, which only displays the expiration date can be retrieved like this:
1
2
$ openssl x509 -
in
tempcrt.pem -noout -enddate
notAfter=Jan 3 23:19:24 2009 GMT
The second method which includes a lot more detail about the certificate below, I’ve only included the details relevant to the creation and expiration dates.
1
2
3
4
5
6
$ openssl x509 -
in
tempcrt.pem -noout -text
[ ... snip ... ]
Validity
Not Before: Jan 3 23:19:24 2008 GMT
Not After : Jan 3 23:19:24 2009 GMT
[ ... snip ... ]
0 0
- How do I determine the expiration date of a p12 certificate?
- In a combobox, how do I determine the highlighted item (not selected item)?
- How can I determine the byte offset of a field within a structure?
- How do I accept a self-signed SSL certificate using iOS 7's NSURLSession and its family of delegate
- How do I perform a manual full refresh instead of using the Apply program to do the full refresh?
- How do I bind the values of an enum to a ComboBox?
- How do I get the reference count of a CLR object?
- How do I sort an array of hashes by a value in the hash?
- How do I determine if a web page exists with shell scripting?
- How do I like the idea of cloning?
- how do I get the instance of sun.misc.Unsafe
- How do I create a log file of my installation?
- How do I pass a list of files to grep
- How do I find the PublicKeyToken for a particular dll?
- How do I hide a menu item in the actionbar?
- With a Java ExecutorService, how do I complete actively executing tasks but halt the processing of w
- 【跟着stackoverflow学Pandas】-How do I get the row count of a Pandas dataframe-获取DataFrame行数
- How to determine the size of a class/struct in the C++?
- HDU 2022 海选女主角
- iOS Interview Questions with Answers part2
- 【Java】BlockingQueue简介
- [翻译]飞翔的 gob
- 博弈经典例子
- How do I determine the expiration date of a p12 certificate?
- JS操作JSON总结
- app跨域请求
- hdu1018 Big Number
- 控制照明系统,免费DMX灯光设计软件
- __STL_CLASS_PARTIAL_SPECIALIZATION
- hdoj 1789 Doing Homework again 【贪心】
- ehcache配置二级缓存
- iOS Interview Questions with Answers part3