From e3754b964a2277a649bc75f597eb882600fc06ec Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Tue, 31 Oct 2023 15:09:11 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B4=88=EA=B8=B0=ED=99=94=20=EC=8B=9C=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/interfaces/gpki/GPKI.java | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/src/main/java/cokr/xit/interfaces/gpki/GPKI.java b/src/main/java/cokr/xit/interfaces/gpki/GPKI.java index 0d0408b..36231b6 100644 --- a/src/main/java/cokr/xit/interfaces/gpki/GPKI.java +++ b/src/main/java/cokr/xit/interfaces/gpki/GPKI.java @@ -97,11 +97,25 @@ public class GPKI extends AbstractComponent { for (String serverID: conf.getTargetServers()) load(gpki, serverID); - envCert = Disk.readCert(conf.getCertFile("env")).getCert(); - envKey = Disk.readPriKey(conf.getPrivateKeyFile("env"), conf.getPrivateKeyPassword("env")).getKey(); - - sigCert = Disk.readCert(conf.getCertFile("sig")).getCert(); - sigKey = Disk.readPriKey(conf.getPrivateKeyFile("sig"), conf.getPrivateKeyPassword("sig")).getKey(); + String filepath = conf.getCertFile("env"); + log(GPKI.class).debug("env certFile: {}", filepath); + envCert = Disk.readCert(filepath).getCert(); + filepath = conf.getPrivateKeyFile("env"); + log(GPKI.class).debug("env keyFile: {}", filepath); + String keyPassword = conf.getPrivateKeyPassword("env"); + log(GPKI.class).debug("env keyPassword: {}", keyPassword); + envKey = Disk.readPriKey(filepath, keyPassword).getKey(); + log(GPKI.class).debug("envKey loaded"); + + filepath = conf.getCertFile("sig"); + log(GPKI.class).debug("sig certFile: {}", filepath); + sigCert = Disk.readCert(filepath).getCert(); + filepath = conf.getPrivateKeyFile("sig"); + log(GPKI.class).debug("sig keyFile: {}", filepath); + keyPassword = conf.getPrivateKeyPassword("sig"); + log(GPKI.class).debug("sig keyPassword: {}", keyPassword); + sigKey = Disk.readPriKey(filepath, keyPassword).getKey(); + log(GPKI.class).debug("sigKey loaded"); finish(gpki); } catch (Exception e) {