X-Git-Url: https://pwan.org/git/?p=certmaster.git;a=blobdiff_plain;f=scripts%2Fcertmaster-ca;h=0e43253b3e0ddee70e8c8923f99d916abc1cb23c;hp=a504d203e045b7cfe3fe899ee5e150b6924a66c9;hb=1b1b6f5733d65cbb73f48ac9b4419aba3dc00eee;hpb=4a7f409334528affd3b0245f9fe6e0b35e50e54b diff --git a/scripts/certmaster-ca b/scripts/certmaster-ca index a504d20..0e43253 100755 --- a/scripts/certmaster-ca +++ b/scripts/certmaster-ca @@ -1,12 +1,14 @@ #!/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 certmaster @@ -15,27 +17,37 @@ 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