SSL testing validity with Java