[Bug 2947] New: ssh-keygen generated keys are not read in by openssl

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Dec 19 22:06:34 AEDT 2018


https://bugzilla.mindrot.org/show_bug.cgi?id=2947

            Bug ID: 2947
           Summary: ssh-keygen generated keys are not read in by openssl
           Product: Portable OpenSSH
           Version: 7.9p1
          Hardware: Other
                OS: Windows 7
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh-keygen
          Assignee: unassigned-bugs at mindrot.org
          Reporter: tschweikle at gmail.com

# ssh-keygen -t rsa -b 2048 -N "" -C "TestKey" -f id_gvm_rsa
Generating public/private rsa key pair.
id_gvm_rsa already exists.
Overwrite (y/n)? y
Your identification has been saved in id_gvm_rsa.
Your public key has been saved in id_gvm_rsa.pub.
The key fingerprint is:
SHA256:9NrSbEbjs8/5zXqSX7vVDwv7Ws7U0FBV+YGKOwXVmM0 TestKey
The key's randomart image is:
+---[RSA 2048]----+
|          ..* . B|
|         . o E + |
|        . o . . o|
|       . o o   o.|
|        S *   . .|
|         X .   o.|
|        o X . +.=|
|         + + Oo=*|
|          ..*+BB*|
+----[SHA256]-----+
# openssl req -x509 -days 2000 -new -key id_gvm_rsa -out
id_gvm_rsa-cert.pem
unable to load Private Key
140028946031680:error:0909006C:PEM routines:get_name:no start
line:../crypto/pem/pem_lib.c:745:Expecting: ANY PRIVATE KEY

Handbook and examples state this shall work. It does not.
This breaks various tools and websites importing private or public
ssh-keys. They just fail.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list