Mailing List Archive

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

--- Comment #4 from Tomasz Pawe? Gajc <tpgxyz@gmail.com> ---
Sorry for long delay in my response.

I've applied your patch, recompiled opnssh, installed it and i executed
ssh-add on my old key, and here is the output:

[root@tpg-virtualbox home]# ssh-add -vvv
Error loading key "/root/.ssh/id_rsa": error in libcrypt

--
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

Damien Miller <djm@mindrot.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Attachment #3457|0 |1
is obsolete| |

--- Comment #5 from Damien Miller <djm@mindrot.org> ---
Created attachment 3469
--> https://bugzilla.mindrot.org/attachment.cgi?id=3469&action=edit
more debugging

(In reply to Tomasz Pawe? Gajc from comment #4)
> Sorry for long delay in my response.

No problem - thanks for helping debug this problem!

> I've applied your patch, recompiled opnssh, installed it and i
> executed ssh-add on my old key, and here is the output:
>
> [root@tpg-virtualbox home]# ssh-add -vvv
> Error loading key "/root/.ssh/id_rsa": error in libcrypt

I don't understand how the patch has failed to print more information.
I have attached a patch that should show a little more - can you please
try that?

--
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 #6 from Tomasz Pawe? Gajc <tpgxyz@gmail.com> ---
Hi, i did apply your second patch
(https://github.com/OpenMandrivaAssociation/openssh/blob/errors/openssh-8.4p1-catch-openssl-errors.patch),
here is the output:

[root@tpg-virtualbox home]# ssh-add -vvv
306: Error loading key "/root/.ssh/id_rsa": error in libcrypto


Here are the build logs
https://abf.openmandriva.org/build_lists/981796

--
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 #7 from Tomasz Pawe? Gajc <tpgxyz@gmail.com> ---
Output of a strace ssh-add -vvv :

newfstatat(AT_FDCWD, "/foo.ssh/id_rsa", {st_mode=S_IFREG|0600,
st_size=3326, ...}, 0) = 0
openat(AT_FDCWD, "/foo/.ssh/id_rsa", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0600, st_size=3326, ...},
AT_EMPTY_PATH) = 0
getuid() = 0
newfstatat(4, "", {st_mode=S_IFREG|0600, st_size=3326, ...},
AT_EMPTY_PATH) = 0
read(4, "-----BEGIN RSA PRIVATE KEY-----\n"..., 4096) = 3326
read(4, "", 770) = 0
read(4, "", 4096) = 0
close(4) = 0
futex(0x7f29f67cf20c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f29f67cde50, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f29f67cde58, FUTEX_WAKE_PRIVATE, 2147483647) = 0
write(2, "306: Error loading key \"/foo/.s"..., 63306: Error loading
key "/foo/.ssh/id_rsa": error in libcrypto
) = 63

--
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 #8 from Tomasz Pawe? Gajc <tpgxyz@gmail.com> ---
I am more and more convinced this is openssl3 internal issue with
reading keys.

--
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