X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=util%2Forg%2Fcacert%2Fgigi%2Futil%2FSimpleSigner.java;h=f0c559ac8bcb9224303853017380e68aaed45e4c;hb=e2a119b4793a18995c431bb555914eea05991c53;hp=5144e5724db7f09635b3b21aa7c9d81e7adc8ef5;hpb=b0a970a60d0001260594468f3ffffbf92a19bc44;p=gigi.git diff --git a/util/org/cacert/gigi/util/SimpleSigner.java b/util/org/cacert/gigi/util/SimpleSigner.java index 5144e572..f0c559ac 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,32 @@ 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(),// + "-utf8", "-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();