#!/usr/bin/python -tt # sign/list keys # --ca ca sign/list certs for the 'ca' # --sign hostname hostname hostname # --list # lists all csrs needing to be signed # --list-all ca list all certs for a given ca # --clean? not sure what it will do import sys import glob import optparse import os import certmaster import certmaster.certs import certmaster.certmaster def errorprint(stuff): print >> sys.stderr, stuff class CertmasterCAOptionParser(optparse.OptionParser): def get_version(self): return file("/etc/func/version").read().strip() def parseargs(args): usage = 'certmaster-ca