Great blog post on the subject
Extracting the Key Hash from .p12 key
- Open Terminal or Command line and navigate to where your .p12 key is.
- Type in: “keytool -v -list -keystore mycert.p12 -storetype pkcs12″ where mycert.p12 is the filename of your .p12 key.
- Enter keystore password (the one you used when exported .p12 key).
4 . Copy sha1 fingerprint signature bytes text.
- The bytes at sha1 fingerprint signature are needed to write the “sha1.bin” file. You can use a hexadecimal editor to paste the bytes you copied. Afterwards, save the file as “sha1.bin”.
- Open terminal again and type in: “openssl base64 -in sha1.bin -out base64.txt”.
- The resulting “base64.txt” will contain the Key Hash that is needed for Facebook.
Great and simple hexadecimal editor for mac: HexFiend
OpenSSL should be preinstalled on mac, and here is the link for Windows version.
Link