Mailing List Archive

[Bug 3233] Error loading key ".ssh/id_rsa": error in libcrypto
https://bugzilla.mindrot.org/show_bug.cgi?id=3233

Tomasz Pawe? Gajc <tpgxyz@gmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
OS|Windows 10 |Linux
Hardware|Other |ix86
Severity|enhancement |normal

--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3233] Error loading key ".ssh/id_rsa": error in libcrypto [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3233

Damien Miller <djm@mindrot.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |djm@mindrot.org

--- Comment #1 from Damien Miller <djm@mindrot.org> ---
From the github issue it looks like your key is in the OpenSSH format.

If you have an older OpenSSH around, then could you try converting your
key to the OpenSSL PEM format and see if that works?

cp id_rsa id_rsa_pem
ssh-keygen -p -m PEM -N '' -f id_rsa_pem

You'll also be able to check the key using OpenSSL's tools, e.g.
"openssl rsa -check -noout -in id_rsa_pem"

--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3233] Error loading key ".ssh/id_rsa": error in libcrypto [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3233

--- Comment #2 from Tomasz Pawe? Gajc <tpgxyz@gmail.com> ---
(In reply to Damien Miller from comment #1)
> From the github issue it looks like your key is in the OpenSSH
> format.
>
> If you have an older OpenSSH around, then could you try converting
> your key to the OpenSSL PEM format and see if that works?
>

Yes, my ssh key works with older openssh/openssl


[live@localhost .ssh]$ ssh-keygen -p -m PEM -N '' -f id_rsa_pem
Enter old passphrase:
Your identification has been saved with the new passphrase.
[live@localhost .ssh]$ openssl rsa -check -noout -in id
id_rsa id_rsa_pem id_rsa.pub
[live@localhost .ssh]$ openssl rsa -check -noout -in id_rsa_pem
RSA key ok

[live@localhost .ssh]$ rpm -qa | grep openssl
openssl-1.1.1c-1.x86_64
lib64qca2-plugin-openssl-2.1.4-2.x86_64
[live@localhost .ssh]$ rpm -qa | grep openssh
openssh-8.1p1-1.x86_64
openssh-server-8.1p1-1.x86_64
openssh-askpass-common-8.1p1-1.x86_64
openssh-clients-8.1p1-1.x86_64

--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3233] Error loading key ".ssh/id_rsa": error in libcrypto [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3233

--- Comment #3 from Damien Miller <djm@mindrot.org> ---
Created attachment 3457
--> https://bugzilla.mindrot.org/attachment.cgi?id=3457&action=edit
print libcrypto errors in ssh-add

okay, can you load the PEM key on the openssl-3.x host?

Also, you could try building OpenSSH from git with the attached patch
applied to see why openssl-3.x is refusing the key.

--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs