@Disabled("We need to update the test certificate with certificate revocation lists (CRL)")
st
public void verifyCertificationChainPositive() throws IOException, UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, CertificateException, InvalidAlgorithmParameterException, NoSuchProviderException {

		///// Load Certificate
onfiguration conf = new Configuration(defaultConf);
		ClassLoader classLoader = getClass().getClassLoader();
		String fileName="testsigningCA.pfx";
		String fileNameKeyStore=classLoader.getResource(fileName).getFile();	
th file = new Path(fileNameKeyStore);
 	HadoopKeyStoreManager hksm = new HadoopKeyStoreManager(conf);
   	hksm.openKeyStore(file, "PKCS12", "changeit");
		// load private key
   	Key privateKey = hksm.getPrivateKey("testalias", "changeit");
   	assertNotNull(privateKey,"Private key could be loaded");
   	// load certificate
   	Certificate certificate = hksm.getCertificate("testalias");
   	assertNotNull(certificate,"Certificate for private key could be loaded");
   	///// Load Chain
   	classLoader = getClass().getClassLoader();
ring fileNameTS="signingtruststore.jks";
ring fileNameTrustStore=classLoader.getResource(fileNameTS).getFile();	
th fileTS = new Path(fileNameTrustStore);
doopKeyStoreManager hksmTS = new HadoopKeyStoreManager(conf);
smTS.openKeyStore(fileTS, "JKS", "changeit");
 get chain from truststore
 verify, should be false because no CRLs found / test case needs some enhancemen
sertFalse(CertificateChainVerificationUtil.verifyCertificateChain((X509Certificate)certificate, hksmTS.getAllX509Certificates()), "Certification chain can be verified successfully");
}