get correct path to server key and cert
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Wed, 18 Jan 2012 02:00:05 +0000 (21:00 -0500)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Wed, 18 Jan 2012 02:00:05 +0000 (21:00 -0500)
sfa/server/sfa-clean-peer-records.py

index bcb917b..a618e50 100644 (file)
@@ -26,9 +26,9 @@ def main():
     # Get the path to the sfa server key/cert files from 
     # the sfa hierarchy object
     sfa_hierarchy = Hierarchy()
-    sfa_key_path = sfa_hierarchy.basedir
-    key_file = os.path.join(sfa_key_path, "server.key")
-    cert_file = os.path.join(sfa_key_path, "server.cert")
+    auth_info = sfa_hierarchy.get_interface_auth_info()
+    key_file = auth_info.get_privkey_filename()
+    cert_file = auth_info.get_gid_filename()
     key = Keypair(filename=key_file) 
 
     # get a connection to our local sfa registry