fixed java cert connection issue