feat: Actually encrypt private keys on disk and in DB #16

Merged
MarkL4YG merged 10 commits from feat/pkeyEncryption into main 2024-11-23 16:58:55 +00:00
Showing only changes of commit 022e5497d1 - Show all commits

View file

@ -393,8 +393,9 @@ public class OpenSSLCertificateCreator {
throw new RuntimeException(e);
}
StartedProcess certGenProc = null;
try {
StartedProcess certGenProc = new ProcessExecutor()
certGenProc = new ProcessExecutor()
.command(
resolveOpenSSL(),
"x509",
@ -421,6 +422,8 @@ public class OpenSSLCertificateCreator {
throw new CommandLineOperationException("Failure running OpenSSL x509 command.", e);
} catch (ExecutionException e) {
throw new RuntimeException(e);
} finally {
killIfActive(certGenProc);
}
return outFile;
}