X-Git-Url: https://pwan.org/git/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fcertmaster-ca;h=7f8f9674c5a504756495ff47c37ba627e8fd0211;hb=af9d4112024b33b207ad562f3cadb199155b9575;hp=7370ef3fee48de971da480582c151e313574edb4;hpb=1c44d82bc9270466521e8c8d5339d0213935f385;p=certmaster.git diff --git a/scripts/certmaster-ca b/scripts/certmaster-ca index 7370ef3..7f8f967 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,16 +17,20 @@ 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