Windows 8.1 - Facebook SDK - OpenSSL & Keytool


I post this just to tell you how I made working Keytool from Java SDK and OpenSSL using Facebook SDK in Unity 4.3.4f1 on Windows 8.1 x64.

I post this type because I have encourtered lot of problems trying maybe all founded solutions on this and other forums.

So, to make the openssl and keytool working to get required Key Hash, I have proceeded like this :

1 - Download the OpenSSL installer (the x64 full package) here : Win32/Win64 OpenSSL Installer for Windows - Shining Light Productions (link to the file :

2 - Download the lastest x64 JavaSDK here ( I have installed the lastest Java 8 SDK.

3 - Make sure to use the lastest Facebook SDK. Take a look here : Downloads - Unity SDK - Documentation - Meta for Developers

4 - Now you have all the needed files.

5 - So start installing OpenSSL on “C:/OpenSSL” and go to “Control Panel > System > Advanced system settings > Environment Variables” and select the Variable “Path” in the “System variables” window and click Edit. And finally, add the path to your OpenSSL bin folder to the end of the “Variable value” after a “;”. For exemple, using “C:/OpenSSL” install folder, you’ll type “;C:\OpenSSL\bin”.

6 - You’ll have to do the same for JavaSDK.
Install it and then add the environnement variable.
Using Java8, I have putted “;C:\Program Files\Java\jdk1.8.0\bin” just after openssl one.

7 - Adding these variables make prompt commands wordking (like “keytool” or “openssl”) but to make it work in Unity, I have had to restart Windows.
The problem was here. When I was testing some solutions without restarting, they didn’t work.
But if you install these packages and configure environnement variables like I did and after that, restart windows, when you’ll create a new Unity project using the last Facebook SDK, you’ll problably not get the warning message telling you “keytool” or maybe “openssl” is not founded.

It must work :wink:
(It works for me :slight_smile:

Good luck !

unity crashes after setting the path. seems like openss.exe does not work right

Really happy it had helped you !! :slight_smile:

Thank you:)