[Bug 3916] Help diagnosing key-related "error in libcrypto"

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Feb 7 11:28:36 AEDT 2026


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

Darren Tucker <dtucker at dtucker.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
             Blocks|                            |3880
         Resolution|---                         |FIXED
                 CC|                            |dtucker at dtucker.net

--- Comment #1 from Darren Tucker <dtucker at dtucker.net> ---
I extended the error message to include the "reason" string as supplied
by libcrypto, and will report all errors from the libcrypto error stack
at loglevel DEBUG1.  Whether or not this of assistance or not will
depend on the quality of error messages returned by libcrypto.

Before
https://github.com/openssh/openssh-portable/commit/9c4949c11d8da1a5422e2174afb1a4f5b3dc8914
:

$ ssh-add -v packet.o 
Error loading key "packet.o": error in libcrypto

With it:

$ ./ssh-add packet.o 
Error loading key "packet.o": error in libcrypto: unsupported

$ ./ssh-add -v packet.o 
debug1: libcrypto: 'error:1E08010C:DECODER
routines::unsupported:crypto/encode_decode/decoder_lib.c:102:No
supported data to decode. Input type: PEM'
Error loading key "packet.o": error in libcrypto: unsupported


Referenced Bugs:

https://bugzilla.mindrot.org/show_bug.cgi?id=3880
[Bug 3880] Tracking bug for openssh-10.3
-- 
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.


More information about the openssh-bugs mailing list