Java code to test cacerts