Got stuck with this “OpenSSL not found” error today on Unity3D and after some digging I’ve found that the error was caused by my “Path” Environment Variable (in my case on Windows 8.1).
I already have OpenSSL installed on “C:\OpenSSL”. I’ve downloaded the 64bit version Win64 OpenSSL v1.0.1h from here: http://slproweb.com/products/Win32OpenSSL.html – (Consider making a donation too)
I’m also with 64bit JDK 8 from here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
To solve the error “OpenSSL not found” on Facebook Settings you have to update your “Path” Environment Variable by going to Control Panel > System and Security > System (click on the title) > Advanced Settings (on the left menu) .. this should popup a box and at the bottom right you should find a button “Environment Variables”. Click on that button and in the next window, go to to the “System Variables” area and scroll until you find a line with “Path” on the “Variable” column. Select it, click “Edit” and then, click in the “Variable Value” field, press “End” on your keyboard (so you can go to the end of the line … this line is probably big like mine below) and only then type the path to your OpenSSL “bin” folder.
In my case I had to type my Java bin folder too. Remember to use a “;” before the values because this line can have more than one value and the “;” is the separator between them, ok?
*My “Path” Variable Value looks like this (yours is probably different: don’t copy and paste it) .. so I added more two values to end of this line: “;C:\OpenSSL\bin” and “;C:\Program Files\Java\jre8\bin”
C:\Program Files (x86)\EasyPHP-DevServer-13.1VC9\binaries\php\php_runningversion;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\OpenSSL\bin;C:\Program Files\Java\jre8\bin
* Restart your machine to apply the changes and the error should be gone.
** If you are having another error like this one “Error building Player: Win32Exception: ApplicationName=’javac.exe’, CommandLine=’-bootclasspath”, you can do two things:
1 – Create a new Environment Variable following the steps above with the “Variable Name” of JAVA_HOME and “Variable Value” of the folder that contains a file called “javac.exe”. In my case the folder is C:\Program Files\Java\jdk1.8.0_05
2 – Install the JDK 32bit version and it should work just fine.
Many thanks to this post: http://answers.unity3d.com/questions/675546/windows-81-facebook-sdk-openssl-keytool.html
Couldn’t made it without it!
*If now you are getting a “Login cancelled by Player” error, try my newer post.
I’ve been having this problem the whole day and thank God I found your website. This solved my problem! Thanks!
It’s nice to hear that. Thanks!
Thanks for the tutorial. It also helpme this post, where the employment of old versions of SSL are recommended if the last versions don´t work well.
my unity3d project hanged after using above solution what should i do?
This solution is 2 years old now. Not sure how it looks like today though.
I have the same problem like Rajkumar. Cineva a găsi o soluție?
I use Unity 5.5.1f1
Hey Cornel, my solution is probably outdated somehow. You can try to follow JJ’s link and see if using a new OpenSSL version will help. I don’t use Windows anymore so I can’t test this.
I have fixed the issue and update the solution here:
Leave a comment