unity openssl facebook

How to OpenSSL for Unity 5

What is OpenSSL

OpenSSL is a tool used to create a key for mobile apps on Facebook. For anyone who doesn’t use command prompt, like ever, figuring out how to use this tool sucks. So, for my sanity when making my next app, and for anyone else’s sanity who is sick of looking at tutorials from people who don’t know how to give proper detailed directions to people who are learning, I created this tutorial. Please keep in mind, I am using Windows 7, 64 bit, and I am using Unity 5.

how to openssl unity

Step 1

Download the current OpenSSL zip file.

The links:

Step 2

Unzip the file. Open up your C: drive. create a folder (directory) named OpenSSL. Open this folder. Paste the contents of the folder you just unzipped into the OpenSSL folder.

Step 3

Make sure all of your hidden files can be seen. Directions to unhide your files are here.

Step 4

Now, open the directory .android. On my machine, it looks like this:

C:\\Users\\Kendra\\.android

Step 5

See if the debug.keystore file is there. If it is, skip ahead to step 7. If it is not, continue to step 6.

Step 6

Launch your Android Studio and create a new project. Once the project is created, check to make sure that a debug.keystore file has been created in your .android directory.
Click Next below

Pages: 1 2 3

Pages ( 1 of 3 ): 1 23Next »

11 Comments

  1. THANK. YOU. AGAIN…… THANK! YOU!

  2. using cmd i figure out hash key but In unity its still showing the same error:

    1. Author

      You could try saving your project, closing Unity, and then loading the project again to see if the error disappears. The OpenSSL is tricky, and the solutions in this post are the best I could come up with.

      1. I have to restart my system to disappear the error. Thanks your solution was best 🙂

  3. Hello! I have followed your steps, but it didn’t fix my specific problem – I can’t even see anything in the “Android build facebook settings”. Unity console spams with this log when the “Android build facebook settings” toggle is unfold. When I fold it, it’s not spamming.

    Win32Exception: ApplicationName=’cmd’, CommandLine=’/Cecho “xxx” | openssl base64′, CurrentDirectory=”, Native error= Odmowa dostępu.

    “Odmowa dostępu” – means access denied in polish. The problem is that I don’t even know how the access would be denied – I am logged in as an administrator and I have tried everything already. The problem is not showing up on my laptop, so it’s not project specific problem :/ Also I was not able to find this specific problem using Google :<

  4. I already posted a comment here, but I can’t see it anymore. My issue was not fixed, by following your steps – Unity is spamming this log when the Android build facebook settings are unfold – it stops when I fold it.

    Win32Exception: ApplicationName=’cmd’, CommandLine=’/Cecho “xxx” | openssl base64′, CurrentDirectory=”, Native error= Odmowa dostępu.

    Odmowa dostępu – means access denied in polish.

    1. Author

      Hi Greg, I run this site on my own and manually approve the comments. Was sleeping when yours came in .. lol. Now that I’ve approved your first comment, they should automatically be approved from here on out. Anyways, back to your question. It’s been a few years since I wrote this tutorial, and I had a hard time getting it to work as well. Have you tried saving and restarting Unity? I know that’s also worked in the past.

      1. Hi Kendra!

        That’s what I have thought about the comments, but was not sure, because the comments shown up at first, but after refreshing the page they disappeared.

        I don’t think it’s connected with the Unity itself, because I have even changed Unity versions and the error stays the same only on this PC.

        Something worth noting though is that when I remove the debug.keystore from the .android folder I am first time able to see the “Android Build Facebook Settings” fold menu content, like “Android keystore path” “Package name” etc, but when I put it back into the .android folder, then everything comes back to the error that locks the display of contents.

        I am pretty sure that reinstalling the system would help, but I would like to avoid that for such a small need 😀

Leave a Reply

Your email address will not be published. Required fields are marked *