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);