1
10package org.jstk.cert;
11
12import java.util.*;
13import java.util.logging.Logger;
14import java.security.*;
15
16
17import org.jstk.*;
18
19
20public class CertTool extends JSTKAbstractTool {
21 public static final Logger logger = Logger.getLogger("org.jstk.cert");
22 static {
23 cmds.put("issue", new IssueCertCommand());
24 cmds.put("revoke", new RevokeCertCommand());
25 cmds.put("show", new ShowCommand());
26 cmds.put("crl", new CRLGenCommand());
27 cmds.put("validate", new ValidateCertPathCommand());
28 cmds.put("build", new BuildCertPathCommand());
29 cmds.put("setupca", new SetupCACommand());
30 cmds.put("cut", new CutCommand());
31 }
32 public String progName(){
33 String progName = System.getProperty("org.jstk.cert.progname");
34 if (progName == null)
35 progName = "java org.jstk.cert.CertTool";
36
37 return progName;
38 }
39 public String briefDescription(){
40 return "a minimal CA tool";
41 }
42
43
44 public static void main(String[] args) throws Exception {
45 CertTool ct = new CertTool();
46 System.exit(ct.execute(args));
47 }
48}