git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7d085a2
)
dont forget to sign the gid
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 4 May 2010 19:31:59 +0000
(19:31 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 4 May 2010 19:31:59 +0000
(19:31 +0000)
sfa/server/sfa-ca.py
patch
|
blob
|
history
diff --git
a/sfa/server/sfa-ca.py
b/sfa/server/sfa-ca.py
index
477399a
..
84b7ea3
100755
(executable)
--- a/
sfa/server/sfa-ca.py
+++ b/
sfa/server/sfa-ca.py
@@
-87,10
+87,13
@@
def sign(options):
outfile = options.outfile
if not outfile:
outfile = os.path.abspath('./signed-%s.gid' % gid.get_hrn())
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)
# 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)
gid.save_to_file(outfile, save_parents=True)