[Cryptography-dev] New OpenSSH key format

2020-03-02 Thread Lalit Kumar
Can we retrieve the public key from private key in the new OpenSSH format like below: *-BEGIN OPENSSH PRIVATE KEY-b3BlbnNzaC1rZXktdjEABG5vbmUEbm9uZQABAAABFwdzc2gtcnNhAwEAAQAAAQEA2MTxUgEE1y0Mx+nA0SBDRhK2DnNQU4ACS1g8qWwanIJ81q4u1n/8XUdagRSctN

Re: [Cryptography-dev] New OpenSSH key format

2020-03-02 Thread Alex Gaynor
No, cryptography does not support OpenSSH format private keys. This is not currently planned. Alex On Tue, Mar 3, 2020 at 1:28 AM Lalit Kumar wrote: > Can we retrieve the public key from private key in the new OpenSSH format > like below: > > > > > > > > > > > > > > > > > > > > > > > > > > > >

Re: [Cryptography-dev] New OpenSSH key format

2020-03-02 Thread Ron Frederick
You might want to see if AsyncSSH (https://asyncssh.readthedocs.io ) can do what you’re looking for. While its main purpose is to provide an asyncio-compatible SSH client and server, it also had a very complete set of key management functions for reading and wri

Re: [Cryptography-dev] New OpenSSH key format

2020-03-02 Thread Glyph
Twisted trunk@HEAD can do this, via cryptography, although this functionality is not yet present in a release: https://github.com/twisted/twisted/pull/1193 I saw your question and remembered doing the code review for this :-). I would guess we'll