summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-02-05 15:02:21 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-02-05 15:02:21 -0500
commitae7c1200337c480744dca711baf4f4c00127f652 (patch)
tree60c572a0f1ac47e81171b3baddd9a85b740e5dd0 /scripts
parent0c0db84caeb46f4e10ad8126f0a77e5d54a8e3a3 (diff)
downloadthird_party-func-ae7c1200337c480744dca711baf4f4c00127f652.tar.gz
third_party-func-ae7c1200337c480744dca711baf4f4c00127f652.tar.xz
third_party-func-ae7c1200337c480744dca711baf4f4c00127f652.zip
Adding a module to allow func to control certmaster via func, this will be more useful once we have support for local connections.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/certmaster-ca14
1 files changed, 2 insertions, 12 deletions
diff --git a/scripts/certmaster-ca b/scripts/certmaster-ca
index 867bd04..b3e844a 100755
--- a/scripts/certmaster-ca
+++ b/scripts/certmaster-ca
@@ -46,7 +46,7 @@ def main(args):
errorprint('Must be root to run certmaster-ca')
return 1
- cm = func.certmaster.CertMaster('/etc/func/certmaster.conf')
+ cm = func.certmaster.CertMaster()
(opts, args) = parseargs(args)
@@ -84,17 +84,7 @@ def main(args):
return 1
for hn in args:
- csrglob = '%s/%s.csr' % (cm.cfg.csrroot, hn)
- csrs = glob.glob(csrglob)
- certglob = '%s/%s.cert' % (cm.cfg.certroot, hn)
- certs = glob.glob(certglob)
- if not csrs and not certs:
- errorprint('No match for %s to clean up' % hn)
- continue
-
- for fn in csrs + certs:
- print 'Cleaning out %s for host matching %s' % (fn, hn)
- os.unlink(fn)
+ cm.remove_this_host(hn)
return 0