# descendant of the certificate class.
##
-from __future__ import print_function
+
import uuid
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
# 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)))
+ 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)