diff options
| author | Thierry Carrez <thierry@openstack.org> | 2012-09-13 14:07:02 +0200 |
|---|---|---|
| committer | Thierry Carrez <thierry@openstack.org> | 2012-09-13 14:07:02 +0200 |
| commit | 114109dbf4094ae6b6333d41c84bebf6f85c4e48 (patch) | |
| tree | 54777eb4d25d6e274c937266c00b40cd91a0e4f5 /nova | |
| parent | 0296a2d2499a634ef49c2545fd75d41f3219bfa5 (diff) | |
| download | nova-114109dbf4094ae6b6333d41c84bebf6f85c4e48.tar.gz nova-114109dbf4094ae6b6333d41c84bebf6f85c4e48.tar.xz nova-114109dbf4094ae6b6333d41c84bebf6f85c4e48.zip | |
Overload comment in generated SSH keys
Overload comment in generated SSH keys in order not to leak information
about the user and host that actually generated them. Patch based on a
suggestion by Pedro Perez.
Fixes bug 1050347.
Change-Id: I73bbdba1f6c9e83a5e7e70564959b9d7abaa5e29
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/crypto.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/crypto.py b/nova/crypto.py index a5126ae8f..cd2080c1a 100644 --- a/nova/crypto.py +++ b/nova/crypto.py @@ -141,7 +141,7 @@ def generate_key_pair(bits=1024): with utils.tempdir() as tmpdir: keyfile = os.path.join(tmpdir, 'temp') utils.execute('ssh-keygen', '-q', '-b', bits, '-N', '', - '-t', 'rsa', '-f', keyfile) + '-t', 'rsa', '-f', keyfile, '-C', 'Generated by Nova') fingerprint = _generate_fingerprint('%s.pub' % (keyfile)) if not os.path.exists(keyfile): raise exception.FileNotFound(keyfile) |
