Class Main

java.lang.Object
com.sun.grid.ca.Main

public class Main extends Object
CLI util for the GridCA.

Usage of the CLI util

 com.sun.grid.ca.Main [options] <command>

  Commands:

     init                initialize CA infrastructure
     user <u:g:e>        generate certificates and keys for <u:g:e>
                         with u=Unix User, g=Common Name, e=email
     initks <type> <u> <file> [<pwfile>]  create keystore for user <u>
     printcert <u>       print certificate of a user
     renew <u> [<days>]  renew certificate for a user

  Mandatory Options:
    -catop      <dir>       path to the ca root directory
    -calocaltop <dir>       path to the local ca root directory
    -cascript <script>      path to the sge_ca script

  Optional Options:
    -tmp <dir>              path tmp files (default system property java.io.tmp)
    -config <dir>           path to CA configuration files (default $cadist/util/sgeCA
    -adminuser <user>       name of the admin user (default system proeprty user.name)
    -days <days>            number of days the certificates are valid (default 365 days)

 
  • Field Details

  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main(String[] args)
      Parameters:
      args - the command line arguments
    • parseType

      public static int parseType(String type)