git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dont forget to sign the gid
[sfa.git]
/
sfa
/
server
/
sfa-ca.py
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)