Keisha Posted September 19, 2018 Share Posted September 19, 2018 I am a beginner having a very basic knowledge in development. Can anyone educate me how to create a ssl on a localhost server in a windows 10 pc? I need to test my FB instant game locally. I am getting this error when i trying to intall. F:\xampp\htdocs\mygame> openssl genrsa 2048 > key.pem 'openssl' is not recognized as an internal or external command, operable program or batch file. I want to do this: https://developers.facebook.com/docs/games/instant-games/test-publish-share/#localhost Thanks Quote Link to comment Share on other sites More sharing options...
rich Posted September 19, 2018 Share Posted September 19, 2018 Yeah, it's a royal pain in the ass on Windows to get this set-up. Do you have access to a Mac or the ability to ssh into a Unix based VPS? If so, you can generate the keys on there and then transfer them to your PC. This is what I did anyway, it's SO much easier than messing around trying to install OpenSSL on Windows. Quote Link to comment Share on other sites More sharing options...
Keisha Posted September 21, 2018 Author Share Posted September 21, 2018 On 9/19/2018 at 7:27 PM, rich said: Yeah, it's a royal pain in the ass on Windows to get this set-up. Do you have access to a Mac or the ability to ssh into a Unix based VPS? If so, you can generate the keys on there and then transfer them to your PC. This is what I did anyway, it's SO much easier than messing around trying to install OpenSSL on Windows. Sorry for replying late. Okay, i will try it on a Mac. Is there any tutorial reference on this ? Quote Link to comment Share on other sites More sharing options...
vamos Posted September 21, 2018 Share Posted September 21, 2018 I am not developing for facebook, so please forgive me if this is a stupid question, but... why do you have to do this? Isn't localhost always treated as a secure origin by all browsers anyway? Just curious, I don't understand how it works. Quote Link to comment Share on other sites More sharing options...
rich Posted September 21, 2018 Share Posted September 21, 2018 @Keisha yeah the FBIG site has details on how to generate the keys as part of their quick start guide, have a read of it, do it on a Mac, then just copy the keys to your PC. @vamos The Facebook Instant Games iframe pulls in from localhost, but only via SSL. No SSL, nothing works, and you cannot test FBIG games 'locally' any other way. Quote Link to comment Share on other sites More sharing options...
Conor O'Nolan Posted October 5, 2018 Share Posted October 5, 2018 My experience on Windows 10 was that it works only in Mirosoft Edge. On Chrome and Opera the loading stalled. Quote Link to comment Share on other sites More sharing options...
rich Posted October 5, 2018 Share Posted October 5, 2018 It works in Firefox too, but you're right, it doesn't work in Chrome. I always have to use FF when testing FBIG games locally. Quote Link to comment Share on other sites More sharing options...
Keisha Posted October 7, 2018 Author Share Posted October 7, 2018 Xampp works fine for me. Supports all browsers too. Watch how to setup it: https://www.youtube.com/watch?v=gxwbP7fNOzI&index=2&t=0s&list=PLauQ3gMxT3LPXiJWKPOdCQorWCxTx-hCR Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.