X-Git-Url: https://pwan.org/git/?p=certmaster.git;a=blobdiff_plain;f=scripts%2Fcertmaster-ca;fp=scripts%2Fcertmaster-ca;h=7f8f9674c5a504756495ff47c37ba627e8fd0211;hp=0e43253b3e0ddee70e8c8923f99d916abc1cb23c;hb=8513efd091ed3e2beca32436b94132cf1451b119;hpb=1b1b6f5733d65cbb73f48ac9b4419aba3dc00eee diff --git a/scripts/certmaster-ca b/scripts/certmaster-ca index 0e43253..7f8f967 100755 --- a/scripts/certmaster-ca +++ b/scripts/certmaster-ca @@ -64,7 +64,7 @@ def main(args): if opts.list: - hns = cm.get_csrs_waiting(opts.ca) + hns = cm.get_csrs_waiting(ca=opts.ca) if hns: for hn in sorted(hns): print hn @@ -86,7 +86,7 @@ def main(args): return 1 for fn in csrs: - certfile = cm.sign_this_csr(opts.ca,fn) + certfile = cm.sign_this_csr(fn, ca=opts.ca) print '%s signed - cert located at %s' % (fn, certfile) return 0 @@ -96,7 +96,7 @@ def main(args): return 1 for hn in args: - cm.remove_this_cert(opts.ca,hn) + cm.remove_this_cert(hn, ca=opts.ca) return 0 @@ -105,7 +105,7 @@ def main(args): if args: hostglobs = args - signed_certs = cm.get_signed_certs(opts.ca, args) + signed_certs = cm.get_signed_certs(args, ca=opts.ca) for i in sorted(signed_certs): print i @@ -117,7 +117,7 @@ def main(args): if args: hostglobs = args - cert_hashes = cm.get_cert_hashes(opts.ca, hostglobs) + cert_hashes = cm.get_cert_hashes(hostglobs, ca=opts.ca) for i in sorted(cert_hashes): print i