'Create some certificates to use when creating the control service.'

def setUp(self):

    super(ControlScriptTests, self).setUp()
    (ca_set, _) = get_credential_sets()
    self.certificate_path = FilePath(self.mktemp())
    self.certificate_path.makedirs()
    ca_set.copy_to(self.certificate_path, control=True)
    self.script = ControlScript()
    self.options = ControlOptions()
    self.data_path = FilePath(self.mktemp())
    self.options.parseOptions(['--port', 'tcp:8001', '--agent-port', 'tcp:8002', '--data-path', self.data_path.path, '--certificates-directory', self.certificate_path.path])
