Validating CAS tickets w/ HTTPS-Enabled Tomcat

By Misagh Moayyed
April 19, 2012

So, attached is a quick dirty script I wrote to see if I can connect to an Apache Tomcat instance over HTTPS. This may be useful in the context of a CAS server deployment where ticket validation may fail as a result of an SSL certificate being absent or misconfigured in the keystore. 
 
Using the script, you can validate that HTTPS is enabled and functional quickly without going though Tomcat's  startup/shutdown process. Simply change the URL address, recompile and test. 
:)
 
Update #1:
Link to the github project: https://github.com/mmoayyed/java-keystore-ssl-test
 

Your Blogmaster:

mmoayyed's picture

Misagh Moayyed

Comments

Make URL read from command line?

apetro's picture

Very nice!
What if the URL were read from the command line, so no recompile required?  Could even distribute the compiled .class file, such that the tool would be usable from a JRE-only environment. (Not legitimately many of those around, but reduces barrier to testing nonetheless.)
Maybe even this snippet wants to live on GitHub?

Great idea. Done!

mmoayyed's picture

Great idea. Done!