dont forget to sign the gid
authorTony Mack <tmack@cs.princeton.edu>
Tue, 4 May 2010 19:31:59 +0000 (19:31 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 4 May 2010 19:31:59 +0000 (19:31 +0000)
sfa/server/sfa-ca.py

index 477399a..84b7ea3 100755 (executable)
@@ -87,10 +87,13 @@ def sign(options):
     outfile = options.outfile
     if not outfile:
         outfile = os.path.abspath('./signed-%s.gid' % gid.get_hrn())
-    
+   
+    # check if gid already has a parent
     # sign the gid
     gid.set_issuer(parent_key, parent_hrn)
     gid.set_parent(parent_gid)
+    gid.sign()
     gid.save_to_file(outfile, save_parents=True)