def create_keystore(keystore_directory):
    if not unittest_toolbox.rsa_keystore or not unittest_toolbox.rsa_passwords:
        msg = 'Populate \'rsa_keystore\' and \'rsa_passwords\''+\
              ' before invoking this method.'
        sys.exit(msg)

    keystore._keystore = unittest_toolbox.rsa_keystore
    keystore._key_passwords = unittest_toolbox.rsa_passwords
    keystore.save_keystore_to_keyfiles(keystore_directory)
Example #2
0
def create_keystore(keystore_directory):
  if not TestCase_Tools.rsa_keystore or not TestCase_Tools.rsa_passwords:
    msg = 'Populate \'rsa_keystore\' and \'rsa_passwords\''+\
          ' before invoking this method.'
    sys.exit(msg)

  keystore._keystore = TestCase_Tools.rsa_keystore
  keystore._key_passwords = TestCase_Tools.rsa_passwords
  keystore.save_keystore_to_keyfiles(keystore_directory)
Example #3
0
def _create_keystore(keystore_directory):
  """
  <Purpose>
    Populate 'keystore_directory' with keys (.key files).
  """
  
  _rsa_keystore = unittest_toolbox.Modified_TestCase.rsa_keystore
  _rsa_passwords = unittest_toolbox.Modified_TestCase.rsa_passwords
  if not _rsa_keystore or not _rsa_passwords:
    msg = 'Populate \'rsa_keystore\' and \'rsa_passwords\''+\
          ' before invoking this method.'
    sys.exit(msg)

  keystore._keystore = _rsa_keystore
  keystore._key_passwords = _rsa_passwords
  keystore.save_keystore_to_keyfiles(keystore_directory)
def _create_keystore(keystore_directory):
    """
  <Purpose>
    Populate 'keystore_directory' with keys (.key files).
  """

    _rsa_keystore = unittest_toolbox.Modified_TestCase.rsa_keystore
    _rsa_derived_keys = unittest_toolbox.Modified_TestCase.rsa_derived_keys
    if not _rsa_keystore or not _rsa_derived_keys:
        msg = 'Populate \'rsa_keystore\' and \'rsa_passwords\''+\
              ' before invoking this method.'
        sys.exit(msg)

    keystore._keystore = _rsa_keystore
    keystore._derived_keys = _rsa_derived_keys
    keystore.save_keystore_to_keyfiles(keystore_directory)
Example #5
0
  def create_temp_keystore_directory(self, keystore_dicts=False):

    if not self.rsa_keystore or not self.rsa_derived_keys:
      msg = 'Populate \'rsa_keystore\' and \'rsa_passwords\''+\
          ' before invoking this method.'
      sys.exit(msg)

    temp_keystore_directory = self.make_temp_directory()
    keystore._keystore = self.rsa_keystore
    keystore._derived_keys = self.rsa_derived_keys
    keystore.save_keystore_to_keyfiles(temp_keystore_directory)
    if not keystore_dicts:
      keystore._keystore={}
      keystore._derived_keys={}

    return temp_keystore_directory