Example #1
0
 def _generate_x509_cert(self, uid, pid):
     """Generate x509 cert for user"""
     (private_key, csr) = crypto.generate_x509_cert(
             self.__cert_subject(uid))
     # TODO(joshua): This should be async call back to the cloud controller
     signed_cert = crypto.sign_csr(csr, pid)
     return (private_key, signed_cert)
Example #2
0
 def sign_cert(self, csr, uid):
     return crypto.sign_csr(csr, uid)
Example #3
0
 def generate_x509_cert(self, user, project):
     (private_key, csr) = crypto.generate_x509_cert(
         self.__cert_subject(User.safe_id(user)))
     # TODO - This should be async call back to the cloud controller
     signed_cert = crypto.sign_csr(csr, Project.safe_id(project))
     return (private_key, signed_cert)
Example #4
0
 def generate_x509_cert(self, uid):
     (private_key, csr) = crypto.generate_x509_cert(self.__cert_subject(uid))
     # TODO - This should be async call back to the cloud controller
     signed_cert = crypto.sign_csr(csr, uid)
     return (private_key, signed_cert)
Example #5
0
 def post(self, *args, **kwargs):
     project_id = self.get_project_id_from_ip(self.request.remote_ip)
     cert = self.get_argument('cert', '')
     self.write(crypto.sign_csr(urllib.unquote(cert), project_id))
     self.finish()
Example #6
0
 def generate_x509_cert(self, uid):
     (private_key,
      csr) = crypto.generate_x509_cert(self.__cert_subject(uid))
     # TODO - This should be async call back to the cloud controller
     signed_cert = crypto.sign_csr(csr, uid)
     return (private_key, signed_cert)
Example #7
0
File: users.py Project: sorenh/cc
 def generate_x509_cert(self, user, project):
     (private_key, csr) = crypto.generate_x509_cert(self.__cert_subject(User.safe_id(user)))
     # TODO - This should be async call back to the cloud controller
     signed_cert = crypto.sign_csr(csr, Project.safe_id(project))
     return (private_key, signed_cert)
Example #8
0
File: users.py Project: jxta/cc
 def sign_cert(self, csr, uid):
     return crypto.sign_csr(csr, uid)