From e21514105975f34d5c820c8446c1dd8178c3e775 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 5 Jun 2015 13:45:12 +0200 Subject: Copy cacert.pem to merge nodes too. --- mklog.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mklog.py b/mklog.py index 7975171..3ba95e0 100755 --- a/mklog.py +++ b/mklog.py @@ -143,6 +143,11 @@ def create_destdirs(logname, nodenames): if not os.access(d, os.F_OK): os.makedirs(d) +def copy_cacert(nodenames): + ca_cert = './httpscerts/demoCA/cacert.pem' + for nodename in nodenames: + shutil.copy(ca_cert, './nodes/%s/cacert.pem' % nodename) + def main(): parser = argparse.ArgumentParser(description="") parser.add_argument('config', help="System configuration") @@ -162,5 +167,6 @@ def main(): copy_logkey(logname, nodenames + mergenodenames) make_certs(logname, nodenames) make_authkeys(nodenames + mergenodenames) + copy_cacert(mergenodenames) main() -- cgit v1.1