X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Ftrust%2Fgid.py;h=7387902d32f10cc6df370bd3c987a976dc8f9637;hb=4a9e6751f9f396f463932133b9d62fc925a99ef6;hp=b490060346a207ea1f5acad25a97e769b5d679f6;hpb=04a3f20dc71bf8b3f96b1e3172623aa346a638a7;p=sfa.git diff --git a/sfa/trust/gid.py b/sfa/trust/gid.py index b4900603..7387902d 100644 --- a/sfa/trust/gid.py +++ b/sfa/trust/gid.py @@ -25,7 +25,7 @@ # descendant of the certificate class. ## -from __future__ import print_function + import uuid @@ -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,9 @@ class GID(Certificate): # planetlab.us.arizona cannot sign a GID for planetlab.us.princeton.foo. def verify_chain(self, trusted_certs=None): + logger.debug(10*'=' + " GID.verify_chain with {} trusted certs" + .format(len(trusted_certs))) + logger.debug("on {}".format(self.pretty_name())) # do the normal certificate verification stuff trusted_root = Certificate.verify_chain(self, trusted_certs)