Our host recently performed a server migration (mirror of the old environment) but now I can't load the keystore, even though the SSL setup still works.
My problem is when I try to load the keystore to access the private key I get a null pointer exception. The keystore documentation doesn't mention a null pointer exception but I've seen this error before when I tried using the wrong password. If the environment is a mirror of the old environment then the password, etc. should all be the same. Can anyone suggest what may have happened?
In the code below, the "KeyStore loaded" string doesn't get logged.
if (Security.getProvider("BC") == null) {
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
}