cert = keyStore.getCertificate(fileKeyStore.getCertificateAlias());
}
catch (KeyStoreException e)
{
// key store should be initialized above
throw new ServerScopedRuntimeException("Key store has not been initialized", e);
}
if (cert == null)
{
throw new IllegalConfigurationException("Cannot find a certificate with alias " + fileKeyStore.getCertificateAlias()
+ "in key store : " + fileKeyStore.getPath());