6 sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]), 'lib'))
13 from newca import newca
15 from files import files
16 from initfs import initfs
17 from check import check
22 CAM v0.1 - (c)2006 by <ale@incal.net>
23 A Certification Authority manager for complex situations.
24 Usage: %s <COMMAND> [<ARG>...]
28 Initialize the environment by creating the necessary
31 newca [<RSA_CRT> [<DSA_CRT>]]
32 Create a new CA certificate (otherwise you can import
33 your own certificates)
36 Create (or re-create) the certificates corresponding
40 List all known certificates
43 Dump all the certificate-related files of this TAG
46 Should be run weekly from a cron job to warn you if
47 some certificates are about to expire (controlled by
48 the 'warning_days' parameter in the 'global' section
52 The configuration will be read from '%s'.
53 It consists of a ini-style file, with one 'ca' section that
54 specifies global CA parameters, and more sections for each
55 tag with certificate-specific information. See the examples
56 for more details on how to write your own configuration.
58 ''' % (sys.argv[0], config_file_path)
62 if len(sys.argv) < 2 or sys.argv[1] == 'help':
69 for tag in sys.argv[2:]:
76 for tag in sys.argv[2:]:
81 print 'Unknown command \'%s\'.' % cmd