cannot "print" either public or private key
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 "<NULL>" unsupported" in both cases.
I need this for trace(debug, log) functionality.
I dont think this is the same issue, since this only happens with the private function, Not supported is not the same error
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.
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.