Fingerprint of PEM ssh key

Reading time ~1 minute

The problem

I was on AWS and needed to select SSH Key pair. It has been a while that I needed to create one that might require SSH Key pair. So to be sure I got the correct key, I needed to compare fingerprint listed on Key Pair list. I do have pem key with name contain aws so I want to generate finger print for that key.

How to solve it

openssl pkcs8 -in path/to/private_key_file -nocrypt -topk8 -outform DER | openssl sha1 -c

or use AWS tool

sudo apt install ec2-api-tools
ec2-fingerprint-key path/to/private_key_file

That’s it!

Cheers!

Imogene Run

# Breathing Through the Sky: My Imogene Pass Run![Start line](../images/2025-09-07/start.jpeg)This weekend I had the privilege of lining ...… Continue reading

Running Post Hysterectomy

Published on April 01, 2023

Refinance

Published on February 19, 2021