1 Replies - 6180 Views - Last Post: 19 January 2012 - 02:25 PM

#1 W3B5T4R  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 33
  • Joined: 13-April 09

SSL Checker

Posted 17 December 2011 - 08:35 AM

Hello,
Does anyone know of any good tutorials, sites, and or books on writing a SSL checker in Java? I'm trying to do what can be found here: SSL Shopper .
I'm not trying to create a self signed cert or use a a keystore. I want to be able to go out to any site determine if a valid SSL Certificate exists, determine if the hostname on the Cert matches the named entered, and determine when this Cert will expire. I have googled this topic but "How to create a SSL shopper using Java" hasn't yielded me anything and my other searches only brought me links on how to create a self-signed Cert. Any help would be greatly appreciated.

I attached what I'm trying to accomplish as far as extracting information from the Cert.

Is This A Good Question/Topic? 0
  • +

Replies To: SSL Checker

#2 Sinned  Icon User is offline

  • D.I.C Head

Reputation: 18
  • View blog
  • Posts: 207
  • Joined: 13-October 10

Re: SSL Checker

Posted 19 January 2012 - 02:25 PM

I don't know if you have already fixed it, but here is an suggestion:

Create a new SSLContext in Java, bind a X509TrustManager to it.
Create a new SSLSocket - with the created SSLContext - let this connect to the server you want (port 443 is default SSL port)
Start the handshake. (SSLSocket.startHandshake() )

Now all certificates from the server are sent to the X509TrustManager, with this you can use the certificates and verify them.

I hope this could help you,

Sinned
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1