title: Trying to generate key hash for Android Facebook with keytool
body: <p>So I am trying to get a hash so Facebook can use SSO with my android app, but I am having an issue.</p>
  
  <p>so I run this: </p>
  
  <pre><code>keytool -exportcert -alias statusp -keystore my-release-key.keystore | openssl sha1 -binary | openssl enc -a -e
  </code></pre>
  
  <p>And it gives me an error that <code>-exportcert</code> is an illegal option, but it still gives me a key hash! However, it gives me the same key hash if I use the debug key template Facebook provides. So I don't think it's right. It also didn't ask me for my password(s) when making the key hash.</p>
  
  <p>This seems so simple, yet I don't know why I'm having so much trouble. Can anyone offer any hints or suggestions?</p>