초기화 시 로그 추가

master
mjkhan21 1 year ago
parent 137ba2b3ca
commit e3754b964a

@ -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) {

Loading…
Cancel
Save