@Ignore @Test public void testDodCRLCache(){
  Calendar currentDate=new GregorianCalendar();
  if (currentDate.after(testUtil.dodCertExpireDate)) {
    return;
  }
  try {
    KeyStore trustStore=testUtil.getTrustStore();
    ClientCertPolicy certPolicy=ClientCertTestUtils.intializeCertPolicy();
    X509Certificate[] certs=testUtil.getDodValidCert1();
    certPolicy.setRevocationCheckEnabled(true);
    certPolicy.setUseCertCRL(false);
    certPolicy.setCRLUrl(testUtil.getCRLLocalCacheURL(testUtil.dodCRLCacheEMAILCA_29));
    IdmCertificatePathValidator validator=new IdmCertificatePathValidator(trustStore,certPolicy,ClientCertTestUtils.tenant1,null);
    validator.validate(certs[0],new Hashtable<String,String>());
    return;
  }
 catch (  CertRevocationStatusUnknownException e) {
    fail("revocation check status unkown");
  }
catch (  Exception e) {
    fail("unexpected error in validating cert");
  }
}

@ Ignore @ Test public void testDodCRLCache ( ) { Calendar currentDate = new GregorianCalendar ( ) ; if ( currentDate . after ( testUtil . dodCertExpireDate ) ) { return ; } try { KeyStore trustStore = testUtil . getTrustStore ( ) ; ClientCertPolicy certPolicy = ClientCertTestUtils . intializeCertPolicy ( ) ; X509Certificate [ ] certs = testUtil . getDodValidCert1 ( ) ; certPolicy . setRevocationCheckEnabled ( true ) ; certPolicy . setUseCertCRL ( false ) ; certPolicy . setCRLUrl ( testUtil . getCRLLocalCacheURL ( testUtil . dodCRLCacheEMAILCA_29 ) ) ; IdmCertificatePathValidator validator = new IdmCertificatePathValidator ( trustStore , certPolicy , ClientCertTestUtils . tenant1 , null ) ; validator . validate ( certs [ 0 ] , new Hashtable < String , String > ( ) ) ; return ; } catch ( CertRevocationStatusUnknownException e ) { fail ( "revocation check status unkown" ) ; } catch ( Exception e ) { fail ( "unexpected error in validating cert" ) ; } }
crldp test with local dod crl cache . using dod soft cert :
