2 __all__ = [ 'cfg', 'ca_base', 'ca', 'config_file_path' ]
8 config_file_path = os.path.join(os.path.dirname(sys.argv[0]),'config')
9 if not os.path.exists(config_file_path):
11 The configuration file '%s' does not exist.
12 Please create this file and fill in the configuration data
13 of your certificates so that 'cam' can operate.
17 cfg = ConfigParser.ConfigParser()
18 cfg.read(config_file_path)
19 ca = cfg2dict(cfg, 'ca')
20 ca_base = cfg.get('global', 'root')