How to inspect private keys and get general information

In go-ipfs I can generate a key-pair by running ipfs key gen <name> this will output what seems like a hash, and a file is added to $IPFS_PATH/keystore

The question now are:

  1. When I create the key, I give a name/alias, but looking at the files in keystore it is not clear which files belong to which name/alias…How do I find this?
  2. Also I could not read the file in keystore with openssl. How can one read the key files? In which format are they in?

Thanks for your help

Key names are base32-encoded for the file names.

Probably protobuf’ed per .