So I am using the InstallCert.java file from
http://nodsw.com/blog/leeland/2006/12/06-no-more-unable-find-valid-certification-path-requested-target to grab the certs from a SSL enabled server so i can connect via LDAP. The issue is that when i run the program, it generates the jssecacerts file just fine. I copy that to my JAVA_HOME security folder and I am able to connect great, everything works. Then after about 20 minutes it doesn't work anymore and i start getting this execption again
So if I re-copy the same exact cacerts file from before back into my security folder and it works...but again it seems to expire after a few minutes and I get the exceptions again. I am not changing or modifying anything that would cause it to not work. I am literally leaving the computer and coming back to find it no longer works and I need to reinstall.
I have tried adding this to my code to expllicity point to the certs file but i get a "the trustAnchors parameter must be non-empty]" exception which from what i have read means it cannot find the file
*NOTE that using the "javax.net.ssl.trustStore" doesn't work no matter when i try using it, i always get the same error.
what could be the problem?