How to OpenSSL with Unity 5

How to OpenSSL with Unity 5

So, the Facebook plugin for Unity is great, as long as it works. Getting it to works is a giant pain, especially if you have never done it before. Anyways, you can check out the tutorial on my blog, where I also express my feelings on the matter.

Below are the steps to follow in order to get it to work. Best of luck!

Step 1

Download the current openssl zip file. The link is here.

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 is this:
C:\Users\Kendra\.android

Step 5

See if the debug.keystore file is there. If it is, skip 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.

Step 7

Copy the debug.keystore file from your .android folder and paste into your JDK bin Folder. On my machine, it is this:
C:\Program Files\Java\jdk1.7.0_79

Step 8

Open command prompt. You can find it at Start Menu > All Programs > Accessories > Command Prompt.

Step 9

Copy the following code and paste it into a text editor like notepad or stickynotes.




Step 10

Make sure that you replace my paths, with the paths that you have. Your “jdk1.7.0_79″ may be different and your username (where “Kendra” is in the script) is probably different.

Step 11

Copy your script and paste it into your Command Prompt. You will need to right click and and select paste, since you cannot use your keyboard shortcuts.

Step 12

Hit the Enter key on your keyboard.


Your Command Prompt should spit out some letters and numbers on the next line. Now check your Unity 5 project. The error saying that your key should be gone. If it is gone, you are good to go.


If your Unity project is still displaying an error, it is probably something along the line of OpenSSL not found. You will need to add the OpenSSL directory to your path. Continue on.

Step 13

Go to: Start Menu > Control Panel\System and Security\System and select from the left column, Advanced System Settings. Click the Environmental Variables.

Step 14

Under the System Variables section, scroll down the “Path” and select it. Click the “Edit” button.

Step 15

Add the path to your openssl bin folder. I added “;C:\openssl\bin” to the end of the text line. Do not forget the semicolon before the C. Click the OK button until you are out of Advanced System Settings. (this should be 3 times for you to hit OK)


Restart your Unity and open your project.


Select the Facebook tab > Edit Settings. That error should be gone. If you no longer have errors, you are done. If you still have errors, it probably looks something like Keytool not found. Continue on.

Step 16

You will need to add the JDK (Java Development Kit) bin directory to the Path variable value text line.


Once again, go to: Start Menu > Control Panel\System and Security\System and select from the left column, Advanced System Settings. Click the Environmental Variables. Under the System Variables section, scroll down the “Path” and select it. Click the “Edit” button.

Step 17

Add the JDK bin path. I added “;C:\Program Files\Java\jdk1.7.0_79\bin” to the end of the value text line. Once again, don’t forget the semicolon.


Click the OK button until you are out of Advanced System Settings. (this should be 3 times for you to hit OK). Restart Unity, again, and open your project.


Select the Facebook tab > Edit Settings. That error should be gone. If you no longer have errors, you are done. If you still have errors, post them in the comments and I’ll see what I can do to help you out.

So, there you have it. Your errors should be gone. If you have any questions, feel free to email me.

Sorry about that.. I never got this notification that you left a comment.. the link should work.. I moved the story to a new website and never did a redirect... my bad.

Like
Reply

problem on step 9 what code to copy?

To view or add a comment, sign in

More articles by Kendra Hasson

  • Indie Android Game Epicurus Unvorsum Update

    Epicurus Unvorsum production is Back On Track So, you may or may not know, but I have recently been having some…

  • What Do Video Game Developers Do? Part 2

    In the last post of What Do Video Game Developers Do?, I talked about the basics of what video game developers do. In…

  • What Do Video Game Developers Do?

    Your Idea of What Game Developers are is Wrong So, people have this disgusting idea that all video game developers are…

  • Your Simple Game Development Cycle

    Game development is as simple, or as difficult as we make it. Sometimes, developing a game can become overwhelming.

  • Video Games are an Educational Tool

    Video games are fun, beautiful, and full of inspiration. But how many of you ever thought of them as an educational…

  • What Did You Spend on Your Indie Game Studio in February?

    Indie Game Developers Studios can become costly. I know I spend a lot of my money just keeping up the website and…

  • Epicurus Unvorsum WIP 01

    Work in Progress 01 This is the first work in progress (WIP) video. The game is currently in Alpha phase.

  • Mistakes are a B@*$%.

    Making mistakes sucks. Especially the big ones.

Others also viewed

Explore content categories