I need to write a simple program for work that does the following:
- read a config file
- connect to a bunch of servers
- establish a ssl socket
- pull info form the server’s x509 cert, expire date and hostname for now
- email a report when its done
items 3 and 4 are things that I have had bad luck researching/googleing and I do not know java well, at all since 1.2 around 2001
I found a code snipit that tells me what I need to know about java at http://www.exampledepot.com/egs/javax.net.ssl/GetCert.html
here it is: