ec2-fingerprint-key
Description
Computes and displays the fingerprint for a private key produced by Amazon EC2.
This operation is performed entirely on the client-side. Network access is not required.
Syntax
ec2-fingerprint-key
keyfile
Options
Name | Description | Required |
---|---|---|
|
The path to a file containing an unencrypted PEM-encoded PKCS#8 private key. Type: String Default: None Example: mykey.pem |
Yes |
Output
The command returns a table that contains the following information:
-
A key fingerprint. This is formatted as a hash digest with each octet separated by a colon
Amazon EC2 displays errors on stderr.
Examples
Example Request
This example computes and displays the fingerprint for the mykey.pem private key.
PROMPT>ec2-fingerprint-key mykey.pem
1f:51:ae:28:bf:89:e9:d8:1f:25:5d:37:2d:7d:b8:ca:9f:f5:f1:6f