Comment 1 for bug 780089

Revision history for this message
Adi Roiban (adiroiban) wrote :

Hi,

Do you have any comments about how you would like to bug solved?

I reported this bug while I was looking for a way to generate SSH public and private keys from Python without external calls to openssh-keygen or openssl.

My first stop was pyOpenSSL since I knew that OpenSSH is using openssl.

Later I found the code from twisted.conch.ssh.key and used the Key class to generate my public and private keys in the OpenSSH format.

I am willing to continue implementing the crypto.dump_privatekey API, but after learning more about pyOpenSSL I was thinking that it would be better to export the key elements in PKey and the dump_privakekey could use them to dump the key in various formats.