Crypto SSL False

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

Moderators: Lapo, Bax

Ardito
Posts: 128
Joined: 12 Sep 2016, 11:26
Location: Italy

Crypto SSL False

Postby Ardito » 17 Jun 2022, 14:51

Hi,
I had to move my server to another place, now when I try to make an encrypted connection I get "OnCryptoInit FALSE", why the certificate check fails?

- I have opened the ports of the Router;
- Firewall set;

Maybe changing the connection, but the PC remained the same, do I have to recreate the Keystore file all over again?

Through this site: https://www.digicert.com/help/ I receive "Unable to connect", while if I go to the page of <my domain> on the server: <the port> I check the green certificate.

Best regards
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Crypto SSL False

Postby Lapo » 17 Jun 2022, 15:13

Hi,
can you send us your server's url (domain name), so we can check the certificate?

Thanks
p.s. = use a private message if you prefer to keep the domain private.
Lapo
--
gotoAndPlay()
...addicted to flash games
Ardito
Posts: 128
Joined: 12 Sep 2016, 11:26
Location: Italy

Re: Crypto SSL False

Postby Ardito » 17 Jun 2022, 15:34

Sent via private message
hng
Posts: 39
Joined: 01 Nov 2021, 18:17

Re: Crypto SSL False

Postby hng » 20 Jun 2022, 10:51

Just from my experience,

My dev server is win2019 and production is 2022. In 2022 TLS1.3 is active by default, most of android SDK except the most newest only support TLS1.2 by default.

so either manually whitelist the endpoint in the apk, force apps to use TLS1.3 or downgrade to TLS1.2 or the last maybe you havent activate crypto option in the admintools



best regards
HNG
Ardito
Posts: 128
Joined: 12 Sep 2016, 11:26
Location: Italy

Re: Crypto SSL False

Postby Ardito » 20 Jun 2022, 12:21

The encryption is active, before the move everything worked perfectly, so I don't think the problem is a TLS version problem

Best regards
Ardito
Posts: 128
Joined: 12 Sep 2016, 11:26
Location: Italy

Re: Crypto SSL False

Postby Ardito » 20 Jun 2022, 16:21

Through private messages with SmartFoxServer 2X support, we found that I was missing a piece of code in the client:

Code: Select all

         ConfigData config = new ConfigData();
            config.Host = ServerIP;
            config.HttpPort = HTTPport;
            config.HttpsPort = HTTPSport;
            config.Zone = "Login";
            sfsConnection.Connect(config);


Best regards

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Ronaldniff, Thomasea and 70 guests