X-Git-Url: https://pwan.org/git/?p=certmaster.git;a=blobdiff_plain;f=scripts%2Fcertmaster-ca;h=0e43253b3e0ddee70e8c8923f99d916abc1cb23c;hp=b3e844a7bac8746bb17f1922578b3e6f98ebb7f2;hb=1b1b6f5733d65cbb73f48ac9b4419aba3dc00eee;hpb=697402da24ca930b3608359a61b9872fdddc62d9 diff --git a/scripts/certmaster-ca b/scripts/certmaster-ca index b3e844a..0e43253 100755 --- a/scripts/certmaster-ca +++ b/scripts/certmaster-ca @@ -1,41 +1,53 @@ #!/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 ? +# --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 func -import func.certs -import func.certmaster +import certmaster +import certmaster.certs +import certmaster.certmaster -from optparse import OptionParser 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