.info("======================================================");
UGateUtil.PLAIN_LOGGER
.info("CERTIFICATE PEM (to store in a certificate.pem file)");
UGateUtil.PLAIN_LOGGER
.info("======================================================");
try (final PEMWriter pemWriter = new PEMWriter(new PrintWriter(
System.out))) {
pemWriter.writeObject(cert);
pemWriter.flush();
UGateUtil.PLAIN_LOGGER
.info("======================================================");
UGateUtil.PLAIN_LOGGER
.info("PRIVATE KEY PEM (to store in a private.pem file)");
UGateUtil.PLAIN_LOGGER
.info("======================================================");
pemWriter.writeObject(privateKey);
pemWriter.flush();
} catch (final Throwable t) {
log.warn("Unable to dump certificate private PEM", t);
}
} catch (final Throwable t) {
log.warn("Unable to dump certificate log", t);