I\'m trying to publish my app to Google playstore, and I can not figure out how to sign the app use the upload key, as stated in https://developer.android.com/studio/publish
If google is signing your app for your, you'll have to use the SHA from the google play store. In your Google Play Console, Go into Release Management and App Signing.
From the section App signing certificate, grab the SHA-1 certificate fingerprint value (do not grab the SHA1: part):
11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:AA:BB:CC:DD:EE
and use it in this command
echo "11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:AA:BB:CC:DD:EE" | xxd -r -p | openssl base64
it should give you your hash