theTrustStore.setCertificateEntry(x509Current.getSubjectX500Principal().getName(), x509Current);
}
}
fos = new FileOutputStream(trustStoreFile);
theTrustStore.store(fos, trustStorePassword.toCharArray());
} catch (GeneralSecurityException e) {
throw new IllegalStateException("Unable to operate on trust store.", e);
} catch (IOException e) {
throw new IllegalStateException("Unable to operate on trust store.", e);