Android-da facebook app imzosini olish uchun tegishli keytool buyrug'i nima?

Men ilovam uchun kalitni eksport qilish uchun openssl ni ishlatishga harakat qilaman. Men Facebook-ning ishlab chiquvchilari yo'l-yo'rig'iga amal qildim, lekin keytool buyrug'iga kelsak, men bu xususda bo'laman.

Facebook shunday yo'l tutdi:

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

Menda bu bor:

"C:\Program Files\Java\jdk1.6.0_23\bin\keytool" -exportcert -alias androiddebugkey -keystore "C:\Users\blah\.android\debug.keystore" | "C:\blah\bin\openssl" sha1 -binary |"C:\blah\bin\openssl" base64

Administrator sifatida openssl.exe faylini ishga tushiraman. Yuqoridagi buyruqni ishga tushirganimda "Openssl xato:" C: \ program fayllari \ java \ jdk1.6.0_23 \ bin \ keytool "" noto'g'ri buyruq.

Iltimos yordam bering! Rahmat

3

1 javoblar

Men uni Windows 7 da ishlashimga to'g'ri keldi:

  1. Copy the entire bin directory from the openssl install to the jdk.x.x\bin directory where the keytool is.

  2. Run the command as shown in the facebook doc as follows:

    keytool -exportcert -alias androiddebugkey -keystore C:\Users\MYUSER\.android\debug.keystore | openssl sha1 -binary | openssl base64
    
  3. It asks for a password (only once) which is android

Umid qilamanki, bu siz uchun ishlaydi

5
qo'shib qo'ydi