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.
SSL Checker
Page 1 of 11 Replies - 5224 Views - Last Post: 19 January 2012 - 02:25 PM
Replies To: SSL Checker
#2
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
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
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|