def _handle_ssl_files(self):
     ssl_dir = os.path.join(self.workdir, 'manager-blueprint/resources/ssl')
     if not os.path.isdir(ssl_dir):
         os.mkdir(ssl_dir)
     self.cert_path = os.path.join(ssl_dir, 'server.crt')
     self.key_path = os.path.join(ssl_dir, 'server.key')
     # create floating ip
     self.floating_ip = self.create_floating_ip()
     # create certificate with the ip intended to be used for this manager
     SSLTestBase.create_self_signed_certificate(
         target_certificate_path=self.cert_path,
         target_key_path=self.key_path,
         common_name=self.floating_ip)
 def _handle_ssl_files(self):
     ssl_dir = os.path.join(self.workdir, 'manager-blueprint/resources/ssl')
     if not os.path.isdir(ssl_dir):
         os.mkdir(ssl_dir)
     self.cert_path = os.path.join(ssl_dir, 'server.crt')
     self.key_path = os.path.join(ssl_dir, 'server.key')
     # create floating ip
     self.floating_ip = self.create_floating_ip()
     # create certificate with the ip intended to be used for this manager
     SSLTestBase.create_self_signed_certificate(
         target_certificate_path=self.cert_path,
         target_key_path=self.key_path,
         common_name=self.floating_ip)
Exemple #3
0
    def _setup_secured_manager_with_ssl(self):
        ssl_dir = os.path.join(self.workdir, 'ssl')
        os.mkdir(ssl_dir)
        self.cert_path = os.path.join(ssl_dir, 'server.cert')
        self.key_path = os.path.join(ssl_dir, 'server.key')

        # create floating ip
        self.floating_ip = self.create_floating_ip()

        # create certificate with the ip intended to be used for this manager
        SSLTestBase.create_self_signed_certificate(
            target_certificate_path=self.cert_path,
            target_key_path=self.key_path,
            common_name=self.floating_ip)

        # bootstrap
        self.setup_secured_manager()