How to get certificates into Java keystore?