amazon-ec2-user-guide icon indicating copy to clipboard operation
amazon-ec2-user-guide copied to clipboard

ED25519 key pair creation doesn't default to pem format

Open daniel-norris opened this issue 4 years ago • 3 comments

Hi All,

I wasn't sure whether this was a bug with the console or with the documentation and actually the expected behaviour when creating a new key pair, so decided to raise this as an issue rather than a pull request. Please let me know if this should live elsewhere.

Behaviour If you attempt to create a new key pair for EC2 (https://eu-west-2.console.aws.amazon.com/ec2/v2/home?region=eu-west-2#CreateKeyPair:) and select the ED25519 algorithm the documentation states that the:

"If you chose ED25519 in the previous step, the Private key file format options do not appear, and the private key format defaults to pem."`

However, it defaults to .ppk. I haven't checked to see whether the same behaviour occurs when you run this in AWS CLI or in PowerShell.

Expected Behaviour When selecting a new ED25519 key pair for the file to default to .pem.

Docs https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html?icmpid=docs_ec2_console

Thanks, Dan

daniel-norris avatar Dec 30 '21 20:12 daniel-norris

Hi Dan,

Thanks for reaching out! My test shows this private key defaulting as .pem. I'm guessing you must be on a Windows system? We can add a note stating that the format depends on your OS.

test-ed25519

mcalmari avatar Dec 31 '21 20:12 mcalmari

Hey @mcalmari,

Yeah, you're right I'm on Windows. I hadn't thought of that but that makes sense. Seems strange that they have removed the option to choose the format for ED25519. In my case, I'm on a Windows machine but I'm creating the key pair for a Linux instance, so it adds an additional step.

I think your suggestion works :)

daniel-norris avatar Jan 02 '22 09:01 daniel-norris

Closing this issue or pull request in advance of archiving this repo. For more information about the decision to archive this repo (and others in the 'awsdocs' org), see the announcement on the AWS News Blog.

joshbean avatar Jun 15 '23 22:06 joshbean