Encryption Protocol: Accessing the SSL 8443 port

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Wipeless
Posts: 3
Joined: 04 Jun 2021, 21:11

Encryption Protocol: Accessing the SSL 8443 port

Postby Wipeless » 07 Jun 2021, 21:20

Hello!

I've been attempting to complete the protocol cryptology (http://docs2x.smartfoxserver.com/Gettin ... yptography) but I've been running into problems at the last step on the certification integrity check.

Problem:
I attempt to verify my ssl certificate by putting this in my browser:

//Pretend my domain is "pineapple"
https://pinapple.com:8443

Result:
I receive a "Site can't be reached" page.

Setup steps:
I created a fresh EC2 Linux 2 instance using this tutorial:
https://docs.aws.amazon.com/AWSEC2/late ... nux-2.html

I can verify I can reach http://pineapple.com and display a simple welcome page.

I created my SSL certificate using the recommended LetsEncrypt Certbot from the above link.

I have ports 20, 80, and 443 open.

I generated my private key and full chain certificate. I used their recommended SSL verification (https://www.ssllabs.com/ssltest/analyze.html) to verify my credentials.
I verified that I can now access https:// from my web server since I see the lock and no errors or warnings by putting this in my browser:

https://pineapple.com

So far, things seem ok.


I then install a fresh Linux copy of SFS onto this machine.

I open port 8080, 8443, and 9933 in my AWS security group.

I can verify that I reach the SFS Admin Tool using http://pineapple:8080.

I set up SFS and add a new encryption zone and a zone that doesn't use encryption.

I then continue on to generate my .pfx file and the the keystore file. I deploy the keystore file manually to SmartFoxServer (http://docs2x.smartfoxserver.com/Gettin ... ual-deploy).

I verified the certificate using the recommended SSL diagnostic tool (https://www.digicert.com/help/). It appears that my "pineapple.com" passes all of the checks.

Unfortunately, when I try accessing port 8443 with https://pineapple.com:8443, I receive a "Site cannot be reached" page.

Client Code
I try to continue to have a Unity user login to the encrypted zone with CRYPTO_INIT just to see what happens. Unfortunately I receive a failure with the following error message:
An error occurred while sending the request


When logging into the zone without encryption, I'm able to successfully sign in.

----

I don't see anything too interesting happening in the smartfox.log.

SSL and encryption is definitely not my forte. But is there anything I'm missing from these tutorials?

Is there any other logs I should check?

Thank you
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Encryption Protocol: Accessing the SSL 8443 port

Postby Lapo » 08 Jun 2021, 07:02

Hi,
all I can see is a 404 error on regular HTTP (80), but there's no connection for HTTPS or any of the SFS2X ports (9933, 8080, 8443)

Are you sure SFS2X is actually up and running?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
Wipeless
Posts: 3
Joined: 04 Jun 2021, 21:11

Re: Encryption Protocol: Accessing the SSL 8443 port

Postby Wipeless » 08 Jun 2021, 15:53

Sorry, I was using as a example website for generality.

//Pretend my domain is "pineapple"
https://pinapple.com:8443


Would it just be easier if I posted my actual domain?

I verified that SFS is running with

Code: Select all

./sfs2x-service status


I can still access the SFS admin page.

Thank you for the quick reply!
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Encryption Protocol: Accessing the SSL 8443 port

Postby Lapo » 09 Jun 2021, 10:06

Ah that's not the actual domain? :D
That explains why we were not able to find any services running :mrgreen:

Yes, definitely let us know the domain name. If you prefer not to post it publicly here, you can send me a private message or send us an email to support@... with a reference to this discussion.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
Wipeless
Posts: 3
Joined: 04 Jun 2021, 21:11

Re: Encryption Protocol: Accessing the SSL 8443 port

Postby Wipeless » 09 Jun 2021, 21:45

Yea, I'd rather the world not know about my trash web dev skills lol.

Thanks! I'll send a private message.
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Encryption Protocol: Accessing the SSL 8443 port

Postby Lapo » 10 Jun 2021, 06:46

Ok :D
Mail received.
Lapo

--

gotoAndPlay()

...addicted to flash games
Greedy-Rishi
Posts: 1
Joined: 23 Dec 2021, 05:22

Re: Encryption Protocol: Accessing the SSL 8443 port

Postby Greedy-Rishi » 23 Dec 2021, 06:33

Hi Lapo ,
We are also facing same issue.
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Encryption Protocol: Accessing the SSL 8443 port

Postby Lapo » 23 Dec 2021, 10:04

Hi,
Greedy-Rishi wrote:Hi Lapo ,
We are also facing same issue.

Please start a new thread posting all the relevant details.
Here's a guide that explains how to provide the details --> viewtopic.php?f=18&t=16497

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
Ardito
Posts: 128
Joined: 12 Sep 2016, 11:26
Location: Italy

Re: Encryption Protocol: Accessing the SSL 8443 port

Postby Ardito » 11 Mar 2022, 18:44

I have the same problem, can you publish the solution?

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 52 guests