ksFile.delete();
}
ksFile = File.createTempFile( "testStore", "ks" );
CoreSession session = getLdapServer().getDirectoryService().getAdminSession();
Entry entry = session.lookup( new Dn( "uid=admin,ou=system" ), CERT_IDS );
byte[] userCertificate = entry.get( CERT_IDS[0] ).getBytes();
assertNotNull( userCertificate );
ByteArrayInputStream in = new ByteArrayInputStream( userCertificate );
CertificateFactory factory = CertificateFactory.getInstance( "X.509" );