Skip to content

Commit

Permalink
Merge "tests/__init__.py: ssh-keygen -m PEM for bouncycastle"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Dec 10, 2018
2 parents e9fede8 + d41f5d7 commit d416d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git_review/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def init_gerrit(self):
os.makedirs(self._dir('gsite', 'etc'))
# create SSH host key
host_key_file = self._dir('gsite', 'etc', 'ssh_host_rsa_key')
utils.run_cmd('ssh-keygen', '-t', 'rsa', '-b', '4096',
utils.run_cmd('ssh-keygen', '-t', 'rsa', '-b', '4096', '-m', 'PEM',
'-f', host_key_file, '-N', '')

print("Creating a new golden site of version " + GOLDEN_SITE_VER)
Expand All @@ -171,7 +171,7 @@ def init_gerrit(self):

# create SSH public key
key_file = self._dir('gsite', 'test_ssh_key')
utils.run_cmd('ssh-keygen', '-t', 'rsa', '-b', '4096',
utils.run_cmd('ssh-keygen', '-t', 'rsa', '-b', '4096', '-m', 'PEM',
'-f', key_file, '-N', '')
with open(key_file + '.pub', 'rb') as pub_key_file:
pub_key = pub_key_file.read()
Expand Down

0 comments on commit d416d10

Please sign in to comment.