X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Ftrust%2Fgid.py;h=96d375e70077d8dd89e6231e3ed884f956ac1582;hb=510763490e86632a50496f611aa3dbc1a2eae924;hp=8d1017fc15e5137f410bf0d7ffcec3d02502a6eb;hpb=64a3d72d8b407d63510bd24cd5af6b936860881e;p=sfa.git diff --git a/sfa/trust/gid.py b/sfa/trust/gid.py index 8d1017fc..96d375e7 100644 --- a/sfa/trust/gid.py +++ b/sfa/trust/gid.py @@ -80,9 +80,9 @@ class GID(Certificate): # @param filename If filename!=None, load the GID from a file # @param lifeDays life of GID in days - default is 1825==5 years - def __init__(self, create=False, subject=None, string=None, filename=None, uuid=None, hrn=None, urn=None, lifeDays=1825): + def __init__(self, create=False, subject=None, string=None, filename=None, uuid=None, hrn=None, urn=None, lifeDays=1825, email=None): - Certificate.__init__(self, lifeDays, create, subject, string, filename) + Certificate.__init__(self, lifeDays, create, subject, string, filename, email=email) if subject: logger.debug("Creating GID for subject: %s" % subject) if uuid: @@ -158,8 +158,6 @@ class GID(Certificate): self.set_data(str, 'subjectAltName') - - ## # Decode the subject-alt-name field of the X509 certificate into the @@ -251,7 +249,7 @@ class GID(Certificate): # trusted_hrn = trusted_hrn[:trusted_hrn.rindex('.')] cur_hrn = self.get_hrn() if not hrn_authfor_hrn(trusted_hrn, cur_hrn): - raise GidParentHrn("Trusted root with HRN %s isn't a namespace authority for this cert %s" % (trusted_hrn, cur_hrn)) + raise GidParentHrn("Trusted root with HRN %s isn't a namespace authority for this cert: %s" % (trusted_hrn, cur_hrn)) # There are multiple types of authority - accept them all here if not trusted_type.find('authority') == 0: