Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cannot "print" either public or private key #569

Open
petrovr opened this issue Nov 19, 2024 · 3 comments
Open

cannot "print" either public or private key #569

petrovr opened this issue Nov 19, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@petrovr
Copy link

petrovr commented Nov 19, 2024

Functions EVP_PKEY_print_private_fp and EVP_PKEY_print_public_fp failed to output key information.
OpenSSL error queue ( ERR_print_errors_fp(stderr) ) prints "Public Key algorithm "" unsupported" in both cases.


I need this for trace(debug, log) functionality.

@slontis
Copy link

slontis commented Nov 21, 2024

I dont think this is the same issue, since this only happens with the private function,
Not supported is not the same error

@baentsch
Copy link
Member

OpenSSL error queue ( ERR_print_errors_fp(stderr) ) prints "Public Key algorithm "" unsupported"

IMO it looks like a setup error (no key type provided?) Please provide complete setup description as per bug report template so we can reproduce.

@petrovr
Copy link
Author

petrovr commented Nov 30, 2024

More than one month a have prototype of "PQ/T Hybrid Key Exchange in SSH" (draft-kampanakis-curdle-ssh-pq-ke-NN) that uses OpenSSL PKEY with key generation, encapsulation, and decapsulation. Prototype "dumps" a lot of "internal information".

Part of prototype is just published, see kex_pkem_pkey_keygen . After this kex_pkem_to_sshbuf try to dump key.
Result is same as reported: Public Key algorithm "<NULL>" unsupported. Remark: now message is quoted to be displayed properly.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants