]> WPIA git - gigi.git/commitdiff
"fix:"(=remove) simpleSigner revoking
authorFelix Dörre <felix@dogcraft.de>
Tue, 26 May 2015 12:51:59 +0000 (14:51 +0200)
committerFelix Dörre <felix@dogcraft.de>
Tue, 26 May 2015 12:51:59 +0000 (14:51 +0200)
util-testing/org/cacert/gigi/util/SimpleSigner.java

index 77f6e94720b801d421a108eea961fdd9747b47f6..8cd6fb2af1b6efa6af3149feb0eef01dfda61e60 100644 (file)
@@ -192,30 +192,11 @@ public class SimpleSigner {
         while (rs.next()) {
             int id = rs.getInt(1);
             File crt = KeyStorage.locateCrt(id);
-            String[] call = new String[] {
-                    "openssl", "ca",//
-                    "-cert",
-                    "../unassured.crt",//
-                    "-keyfile",
-                    "../unassured.key",//
-                    "-revoke",
-                    "../../" + crt.getPath(),//
-                    "-batch",//
-                    "-config",
-                    "../selfsign.config"
-
-            };
-            Process p1 = Runtime.getRuntime().exec(call, null, new File("keys/unassured.ca"));
-            System.out.println("revoking: " + crt.getPath());
-            if (p1.waitFor() == 0) {
-                worked = true;
-                revokeCompleted.setInt(1, id);
-                revokeCompleted.execute();
-                finishJob.setInt(1, rs.getInt(3));
-                finishJob.execute();
-            } else {
-                System.out.println("Failed");
-            }
+            worked = true;
+            revokeCompleted.setInt(1, id);
+            revokeCompleted.execute();
+            finishJob.setInt(1, rs.getInt(3));
+            finishJob.execute();
         }
         if (worked) {
             gencrl();
@@ -223,6 +204,9 @@ public class SimpleSigner {
     }
 
     private static void gencrl() throws IOException, InterruptedException {
+        if (true) {
+            return;
+        }
         String[] call = new String[] {
                 "openssl", "ca",//
                 "-cert",