Modify the default algorithm from SunX509

Use KeyManagerFactory.getDefaultAlgorithm() instead of the fixed SunX509. SunX509 doesn't work in IBM JRE.