Bug 3545 - Output from ssh-keygen -e, which should always be a public-key, is not accepted by ssh-keygen -l
Summary: Output from ssh-keygen -e, which should always be a public-key, is not accept...
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-keygen (show other bugs)
Version: 8.9p1
Hardware: amd64 Linux
: P5 minor
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-02 18:52 AEDT by Sami
Modified: 2023-03-02 18:52 AEDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sami 2023-03-02 18:52:13 AEDT
ssh -V
OpenSSH_8.9p1 Ubuntu-3, OpenSSL 3.0.2 15 Mar 2022

ssh-keygen -f my
ssh-keygen -ef my > my-ef.pub
ssh-keygen -lf my-ef.pub

## So, maybe my-ef is a private-key
ssh-keygen -yf my-ef.pub
Load key "my-ef.pub": error in libcrypto

man ssh-keygen
-e      This option will read a private or public OpenSSH key file and print to stdout a public key in one of the formats pecified by the -m option.  The default export format is “RFC4716”.  This op‐tion allows exporting OpenSSH keys for use by other programs, in‐cluding several commercial SSH implementations.