X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fserver%2Fsfa-server.py;h=4614e7450b54cb0e9dc0c171e347af2bfd62d6d9;hb=715c2ed6a182d8b95feeb83c91b41a0407feadb1;hp=8639d037c725ece439442e31346fa5ab8eec6925;hpb=ddb8fcc01d66ee278ad1eabfb8a548b13da176df;p=sfa.git diff --git a/sfa/server/sfa-server.py b/sfa/server/sfa-server.py index 8639d037..4614e745 100755 --- a/sfa/server/sfa-server.py +++ b/sfa/server/sfa-server.py @@ -88,7 +88,7 @@ def main(): hierarchy = Hierarchy() trusted_roots = TrustedRootList(config.get_trustedroots_dir()) server_key_file = os.path.join(hierarchy.basedir, "server.key") - server_cert_file = os.path.join(hierarhy.basedir, "server.cert") + server_cert_file = os.path.join(hierarchy.basedir, "server.cert") # XX TODO: Subject should be the interfaces's hrn subject = "registry" if (options.daemon): daemon() @@ -98,7 +98,7 @@ def main(): # found in the authorities directory, generate a random one if not os.path.exists(server_key_file): hrn = config.SFA_INTERFACE_HRN.lower() - key_file = os.sep.join([hierarchy.basedir, hrn, hrn+".pkey") + key_file = os.sep.join([hierarchy.basedir, hrn, hrn+".pkey"]) if not os.path.exists(key_file): # if it doesnt exist then this is probably a fresh interface # with no records. Generate a random keypair for now