Unable to import ed25519 key created by puttygen in to 1Password or vice versa

Options
AndyBrodie
AndyBrodie
Community Member

I'm using puttgen 0.76 to generate an ED25519 key. However, it won't import in to 1Password.

Error is: The key you chose is not a support SSH key: unexpected padding.

The contents of the file are as follows:

-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtz
c2gtZWQyNTUxOQAAACD/cMflLoi7tX2J5BngMsuJ9brrgXlTWJMUEqHlimcL/QAA
AKAePgTLHj4EywAAAAtzc2gtZWQyNTUxOQAAACD/cMflLoi7tX2J5BngMsuJ9brr
gXlTWJMUEqHlimcL/QAAAEA44al08h4Z7U6V5tHV+xOC4hl7dPj7F3PGXErYIqSO
FP9wx+UuiLu1fYnkGeAyy4n1uuuBeVNYkxQSoeWKZwv9AAAAEmVkZHNhLWtleS0y
MDIyMDQyMwECAwQFBgcICQoL
-----END OPENSSH PRIVATE KEY-----

Key type in puttygen is "Ed25519 (255bits)".

I tried the other way around (generating the key in 1Password as part of creating the key to access a service) and it didn't work either. The private key was much shorter in this case:

-----BEGIN PRIVATE KEY-----
MFMCAQEwBQYDK2VwBCIEIEcYJwqRpmV1BmDlx+3W+K2c7jMHHBiQfPWp9OeXrOr9
oSMDIQCaiyUki+lG7ktLbHpyDj1lVh9nEl0kh/ujbKWexjIb9g==
-----END PRIVATE KEY-----

(Key type is Ed25519, but the header doesn't say OPENSSH this time)

This refuses to import in to puttygen with the following error: "Couldn't load private key (unrecognised key type)".

However, I then finally tried generating another key in 1Password UI (not launched from a website) and it gave me something that did importok in to puttygen:

-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACDgyQQ99r6UeBk0Y3BcWSnFx19tTsy8WRDlLckfoAE34QAAAIghk2jfIZNo
3wAAAAtzc2gtZWQyNTUxOQAAACDgyQQ99r6UeBk0Y3BcWSnFx19tTsy8WRDlLckfoAE34Q
AAAEAJ+6w1jqU2ln8oor5jySYEbLas2K8RA34JMWWqaP/LSuDJBD32vpR4GTRjcFxZKcXH
X21OzLxZEOUtyR+gATfhAAAAAAECAwQF
-----END OPENSSH PRIVATE KEY-----

Has anyone got any idea what's going on here please? The questions I have are:

  1. What's wrong with the puttygen generated key such that 1Password refused it with a padding error? Is this a bug in puttygen?
  2. What's wrong with the 1Password generated key such that puttygen refused it with an unrecognised key type? Is this a bug in 1Password?

Many thanks,

Andy

(Of course, all of the keys above are no longer in use as I've included them here!)


1Password Version: 80601001, on PRODUCTION channel
Extension Version: Not Provided
OS Version: Windows 10 10.0.19044.1645

Comments

  • blemasle
    blemasle
    Community Member
    Options

    The private key was much shorter in this case:

    Did you use the "Copy" button from the 1password UI. In my case, it always gives me short, unusable private keys.

  • AndyBrodie
    AndyBrodie
    Community Member
    Options

    Yes, indeed, using the copy button gives me a truncated version of the key with the first half replaced with something random. Downloading it gives me the right one. I guess that's a bug!

    Thanks very much for your help!

This discussion has been closed.