Celoxis SSL Poke is a java program that connects via SSL to a host and port of your choice. The server could be a web server, mail server or any other server that supports SSL. The main primary objective is to determine whether java is able to Java can authenticate the server's certificate using its trusted CA certificate store. This program also verifies whether the host and port are correct.
...
Connect to our web server
Code Block $ java SSLPoke www.celoxis.com 443 SUCCESS
Connect to a server with a self-signed certificate
Code Block $ java SSLPoke localhost 8843 FAILURE: javax.net.ssl.SSLHandshakeException : PKIX path building failed unable to find valid certification path to requested target
Connect to our IMAP+SSL mail server
Code Block $ java SSLPoke secure.emailsrvr.com 993 SUCCESS
Info |
---|
|
Error Messages
- javax.net.ssl.SSLHandshakeException : sun.security.validator.ValidatorException: PKIX path building failed
Java cannot authenticate the server's SSL certificate because its Certificate Authority (CA) is not present in its trusted CA store. - java.net.UnknownHostException
The host name is invalid i.e. not resolvable by your DNS server - java.net.ConnectException : Connection refused
Port is invalid. No server is listening on that port. - java.net.ConnectException : Operation timed out
The host: port combo cannot be connected to. Most likely your firewall is blocking the connection, or, the IP address of the host is incorrect. - javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name
Mismatch The mismatch between host specified in input and host name in the SSL certificate.