Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reading ssl certificate from command line on unix platform

Status
Not open for further replies.

ack123

IS-IT--Management
Nov 8, 2001
11
0
0
US
Hello to all, does anyone know of a utility to read the information from an ssl certificate from a command line on an aix or solaris platform. I would like to write a script to capture the expiration date from an ssl cert. If this helps, I am running the iplanet webserver and would like to simply grep out the 'expires on' variable. If only it was this easy. Any help on a utility to read the information is greatly appreciated.
 
If you have openssl installed you can use that.

You can view the contents of a particular certificate file in plain text by running the command:

$ openssl x509 -noout -text -in <name>.crt
IBM Certified Specialist - MQSeries
IBM Certified Specialist - AIX 5 pSeries System Administration
 
This is certainly the direction I was looking for! I was able to view the *.crt file. To take this one step further, I am trying to read the *-cert7.db files on iPlanet webservers. I have openssl and openssh3.1 installed. I will be continuning research on this and any/all help is greatly appreciated. Thanks again for this information, it has greatly helped.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top