X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=util%2Forg%2Fcacert%2Fgigi%2Futil%2FSimpleSigner.java;h=9752dbf3d1c137271ac47cfb97fd865335e6e3ab;hp=5144e5724db7f09635b3b21aa7c9d81e7adc8ef5;hb=8959f2a060d50516711d2c9677ec83f297f44f35;hpb=b0a970a60d0001260594468f3ffffbf92a19bc44 diff --git a/util/org/cacert/gigi/util/SimpleSigner.java b/util/org/cacert/gigi/util/SimpleSigner.java index 5144e572..9752dbf3 100644 --- a/util/org/cacert/gigi/util/SimpleSigner.java +++ b/util/org/cacert/gigi/util/SimpleSigner.java @@ -123,17 +123,17 @@ public class SimpleSigner { String[] call = new String[] { "openssl", "ca",// "-cert", - "testca.crt",// + "../unassured.crt",// "-keyfile", - "testca.key",// + "../unassured.key",// "-revoke", - "../" + crt.getPath(),// + "../../" + crt.getPath(),// "-batch",// "-config", - "selfsign.config" + "../selfsign.config" }; - Process p1 = Runtime.getRuntime().exec(call, null, new File("keys")); + Process p1 = Runtime.getRuntime().exec(call, null, new File("keys/unassured.ca")); System.out.println("revoking: " + crt.getPath()); if (p1.waitFor() == 0) { worked = true; @@ -154,19 +154,19 @@ public class SimpleSigner { String[] call = new String[] { "openssl", "ca",// "-cert", - "testca.crt",// + "../unassured.crt",// "-keyfile", - "testca.key",// + "../unassured.key",// "-gencrl",// "-crlhours",// "12",// "-out", - "testca.crl",// + "../unassured.crl",// "-config", - "selfsign.config" + "../selfsign.config" }; - Process p1 = Runtime.getRuntime().exec(call, null, new File("keys")); + Process p1 = Runtime.getRuntime().exec(call, null, new File("keys/unassured.ca")); if (p1.waitFor() != 0) { System.out.println("Error while generating crl."); } @@ -211,31 +211,31 @@ public class SimpleSigner { String[] call = new String[] { "openssl", "ca",// "-in", - "../" + csrname,// + "../../" + csrname,// "-cert", - "testca.crt",// + "../unassured.crt",// "-keyfile", - "testca.key",// + "../unassured.key",// "-out", - "../" + crt.getPath(),// + "../../" + crt.getPath(),// "-days", "356",// "-batch",// "-md", rs.getString("md"),// "-extfile", - f.getName(),// + "../" + f.getName(),// "-subj", rs.getString("subject"),// "-config", - "selfsign.config"// + "../selfsign.config"// }; if (ct == CSRType.SPKAC) { call[2] = "-spkac"; } - Process p1 = Runtime.getRuntime().exec(call, null, new File("keys")); + Process p1 = Runtime.getRuntime().exec(call, null, new File("keys/unassured.ca")); int waitFor = p1.waitFor(); f.delete();