Skip to content

Instantly share code, notes, and snippets.

@kopiro
Last active March 21, 2017 17:47
Show Gist options
  • Select an option

  • Save kopiro/8841947 to your computer and use it in GitHub Desktop.

Select an option

Save kopiro/8841947 to your computer and use it in GitHub Desktop.

Titanium reminders for boooooooring operations (OSX only)

Android

Generate the keystore

keytool -genkeypair -v -keystore keystore -keyalg RSA -sigalg SHA1withRSA -validity 10000

Get the SHA1 of keystore (generic)

keytool -list -v -keystore keystore

Get the SHA1 for Google API (DEV)

keytool -storepass tirocks -list -v -keystore ~/Library/Application\ Support/Titanium/mobilesdk/osx/$(ti sdk -v).GA/android/dev_keystore

Get the key hash (base64) for SSO in Facebook

keytool -exportcert -alias keystore -keystore keystore | openssl sha1 -binary | openssl base64

Get the key hash (base64) for SSO in Facebook (DEV)

  • Default: zON/CPoDnIgHvMure4hh9HWdR58=
  • Default secure: ga0RGNYHvNM5d0SLGQfpQWAPGJ8=
keytool -storepass tirock -exportcert -alias tidev -keystore ~/Library/Application\ Support/Titanium/mobilesdk/osx/$(ti sdk -v).GA/android/dev_keystore | openssl sha1 -binary | openssl base64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment