X-Git-Url: https://pwan.org/git/?p=certmaster.git;a=blobdiff_plain;f=scripts%2Fcertmaster-ca;h=75bfad3965f79bdf408de9a883ac1b6c6c205ffc;hp=27e190ea55e6ea31fac1f93391dfc345fdaa8904;hb=240ba9b7e2ee00a8f6014c7d597a5afd1f96249c;hpb=624727a2446d81e1c786d4fb9101cd35603534c4 diff --git a/scripts/certmaster-ca b/scripts/certmaster-ca index 27e190e..75bfad3 100755 --- a/scripts/certmaster-ca +++ b/scripts/certmaster-ca @@ -1,41 +1,50 @@ #!/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 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/certmaster/version").read().strip() def parseargs(args): usage = 'certmaster-ca