X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Ftrust%2Fgid.py;h=7222b181365e5a4dd29970570f3077ed236150db;hb=3147e8e089dd44e40b852cc121483189807ffa9b;hp=b490060346a207ea1f5acad25a97e769b5d679f6;hpb=04a3f20dc71bf8b3f96b1e3172623aa346a638a7;p=sfa.git diff --git a/sfa/trust/gid.py b/sfa/trust/gid.py index b4900603..7222b181 100644 --- a/sfa/trust/gid.py +++ b/sfa/trust/gid.py @@ -156,15 +156,15 @@ class GID(Certificate): else: urn = hrn_to_urn(self.hrn, None) - str = "URI:" + urn + string = "URI:" + urn if self.uuid: - str += ", " + "URI:" + uuid.UUID(int=self.uuid).urn + string += ", " + "URI:" + uuid.UUID(int=self.uuid).urn if self.email: - str += ", " + "email:" + self.email + string += ", " + "email:" + self.email - self.set_data(str, 'subjectAltName') + self.set_data(string, 'subjectAltName') ## # Decode the subject-alt-name field of the X509 certificate into the @@ -232,6 +232,7 @@ class GID(Certificate): # planetlab.us.arizona cannot sign a GID for planetlab.us.princeton.foo. def verify_chain(self, trusted_certs=None): + logger.debug("GID.verify_chain with {} trusted certs".format(len(trusted_certs))) # do the normal certificate verification stuff trusted_root = Certificate.verify_chain(self, trusted_certs)