AOS SSL connection error

Hi guys. I have a new problem, so please share.

This issue is a problem that works perfectly in the web version but does not work in AOS.

First, my development environment looks like this:

cocos creator: 3.5.1 version (there was the same issue in 3.3.2)
nakama : 3.11.0+c820042d
server os: windows 10
port : 7350

First, I am connecting to the domain. I’m using the certificate I got from the chamelio.co.kr domain.

However, this works fine in the web version, but does not work when built with AOS.

The error message called from the server is as follows

[server side]
slot_nakama-nakama-1 | {“level”:“info”,“ts”:“2022-06-08T09:11:07.188Z”,“caller”:“http/server.go:3197”,“msg”:“http: TLS handshake error from 172.19.0.1:44478: remote error: tls: unknown certificate”}

and client side show this

[client side - aos]

2022-06-08 19:59:57.241 7899-8112/com.chamelio.magicka W/System.err: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

What I don’t understand now is that the web version worked perfectly, but I don’t understand why AOS doesn’t work. May I know how to solve this?

Link : Security with HTTPS and SSL  |  Android Developers

Looking here, in the case of android, an intermediate administrator CA is additionally required, is this a problem? If so, how should the middle administrator CA be registered in the current nakama?

Hey @Gandangf are you using Heroic Cloud?

Not yet. Should I use Heroic Cloud for using SSL?

In general we recommend Heroic Cloud if you are looking for out-of-the-box infrastructure such as SSL, loadbalancing, and horizontal scaling. We cannot provide infrastructure support to individuals who are running their own.

I see Okay. I’ll try to solve it myself.