For AWS generated keys
C:\> openssl pkcs8 -in path_to_private_key -inform PEM -outform DER -topk8 -nocrypt | openssl sha1 -c
For manually generated and imported keys
C:\> openssl rsa -in path_to_private_key -pubout -outform DER | openssl md5 -c
For AWS generated keys
C:\> openssl pkcs8 -in path_to_private_key -inform PEM -outform DER -topk8 -nocrypt | openssl sha1 -c
For manually generated and imported keys
C:\> openssl rsa -in path_to_private_key -pubout -outform DER | openssl md5 -c