|
|
@ -97,11 +97,25 @@ public class GPKI extends AbstractComponent {
|
|
|
|
for (String serverID: conf.getTargetServers())
|
|
|
|
for (String serverID: conf.getTargetServers())
|
|
|
|
load(gpki, serverID);
|
|
|
|
load(gpki, serverID);
|
|
|
|
|
|
|
|
|
|
|
|
envCert = Disk.readCert(conf.getCertFile("env")).getCert();
|
|
|
|
String filepath = conf.getCertFile("env");
|
|
|
|
envKey = Disk.readPriKey(conf.getPrivateKeyFile("env"), conf.getPrivateKeyPassword("env")).getKey();
|
|
|
|
log(GPKI.class).debug("env certFile: {}", filepath);
|
|
|
|
|
|
|
|
envCert = Disk.readCert(filepath).getCert();
|
|
|
|
sigCert = Disk.readCert(conf.getCertFile("sig")).getCert();
|
|
|
|
filepath = conf.getPrivateKeyFile("env");
|
|
|
|
sigKey = Disk.readPriKey(conf.getPrivateKeyFile("sig"), conf.getPrivateKeyPassword("sig")).getKey();
|
|
|
|
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);
|
|
|
|
finish(gpki);
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|