I am working with the Facebook SDK for android however there is a section that asks me to generate an authentication hash using keytool, but it throws me the following error:
this is the documentation that I follow:
How can I solve this?
You really have to define the path of OpenSSL instead of "PATH_TO_OPENSSL_LIBRARY\bin\openssl"
, for this you must install it previously, you can download it from this < a href="https://code.google.com/archive/p/openssl-for-windows/downloads"> own link for windows .
When you have it installed you can define it in your command, as an example I have it installed in C:\Data\OpenSSL
which is where openssl.exe
is found:
therefore I define the full path of OpenSSL when calling my command:
keytool -exportcert -alias androiddebugkey -keystore C:\Users\Jorgesys\.android\debug.keystore | openssl sha1 -binary | C:\Data\OpenSSL\openssl
base64
You can also register the path where openssl.exe
is found in the environment variables
and simply define the executable when executing the command:
keytool -exportcert -alias androiddebugkey -keystore C:\Users\Jorgesys\.android\debug.keystore | openssl sha1 -binary | openssl
base64
Remember to also define the correct path where your debug keystore is located, which is the file debug.keystore
, in windows it is regularly found in this route:
C:\Users\<NOMBRE USUARIO>\.android\debug.keystore