[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ssh_pki_export_privkey_file ... ISSUE FOUND - only read this reply :)


On Tue, 2019-12-17 at 22:13 +0100, Torsten Kuehnel wrote:
> [...]
> 
> Finally,
> 
> the gcrypt implementation of pki_private_key_to_pem function, which
> is called by ssh_pki_export_privkey_file for every key type not
> beeing SSH_KEYTYPE_ED25519, is empty, just returns NULL.
> 
> So switching to openssl (cmake parameter -DWITH_GCRYPT=0) solved the
> issue for me. 
> 
> cheers !

Good to hear that you figured out the issue.

With OpenSSL you should be fine. The gcrypt backed is limited in this
way (patches always welcomed).

Regards,
-- 
Jakub Jelen
Senior Software Engineer
Security Technologies
Red Hat, Inc.


Follow-Ups:
Re: ssh_pki_export_privkey_file ... ISSUE FOUND - only read this reply :)Torsten Kuehnel <tdkuehnel@xxxxxxxxxxxxxxxxxxxxx>
References:
ssh_pki_export_privkey_file for SSH_KEYTYPE_RSA key returns SSH_ERRORTorsten Kuehnel <tdkuehnel@xxxxxxxxxxxxxxxxxxxxx>
Re: ssh_pki_export_privkey_file for SSH_KEYTYPE_RSA key returns SSH_ERRORJakub Jelen <jjelen@xxxxxxxxxx>
Re: ssh_pki_export_privkey_file ... ISSUE FOUND - only read this reply :)Torsten Kuehnel <tdkuehnel@xxxxxxxxxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org