From dc6cfdbed121fb7eee929895b7b7bf4c7bb87bd7 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Mon, 13 Nov 2023 11:25:59 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B4=88=EA=B8=B0=ED=99=94=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/interfaces/gpki/GPKI.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/cokr/xit/interfaces/gpki/GPKI.java b/src/main/java/cokr/xit/interfaces/gpki/GPKI.java index 36231b6..a0448e7 100644 --- a/src/main/java/cokr/xit/interfaces/gpki/GPKI.java +++ b/src/main/java/cokr/xit/interfaces/gpki/GPKI.java @@ -102,9 +102,7 @@ public class GPKI extends AbstractComponent { 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(); + envKey = Disk.readPriKey(filepath, conf.getPrivateKeyPassword("env")).getKey(); log(GPKI.class).debug("envKey loaded"); filepath = conf.getCertFile("sig"); @@ -112,9 +110,7 @@ public class GPKI extends AbstractComponent { 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(); + sigKey = Disk.readPriKey(filepath, conf.getPrivateKeyPassword("sig")).getKey(); log(GPKI.class).debug("sigKey loaded"); finish(gpki);