# AOS SSL connection error

**URL:** <https://forum.heroiclabs.com/t/aos-ssl-connection-error/2726>\
**Category:** Local Setup\
**Tags:** server-framework\
**Created:** [June 8, 2022, 11:57am UTC](https://forum.heroiclabs.com/t/aos-ssl-connection-error/2726 "2022-06-08T11:57:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gandangf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/gandangf/32/795_2.png) [@Gandangf](https://forum.heroiclabs.com/u/Gandangf)\
**Post date:** [June 8, 2022, 11:57am UTC](https://forum.heroiclabs.com/t/aos-ssl-connection-error/2726/1 "2022-06-08T11:57:35Z")

</div>

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 &nbsp;|&nbsp; Android Developers](https://developer.android.com/training/articles/security-ssl#MissingCa)

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?

---

<div class="post-metadata">

**Author:** ![lugehorsam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/lugehorsam/32/314_2.png) [@lugehorsam](https://forum.heroiclabs.com/u/lugehorsam)\
**Post date:** [June 8, 2022, 1:38pm UTC](https://forum.heroiclabs.com/t/aos-ssl-connection-error/2726/2 "2022-06-08T13:38:10Z")

</div>

Hey @Gandangf are you using Heroic Cloud?

---

<div class="post-metadata">

**Author:** ![Gandangf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/gandangf/32/795_2.png) [@Gandangf](https://forum.heroiclabs.com/u/Gandangf)\
**Post date:** [June 8, 2022, 2:53pm UTC](https://forum.heroiclabs.com/t/aos-ssl-connection-error/2726/3 "2022-06-08T14:53:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lugehorsam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/lugehorsam/32/314_2.png) [@lugehorsam](https://forum.heroiclabs.com/u/lugehorsam)\
**Post date:** [June 8, 2022, 3:26pm UTC](https://forum.heroiclabs.com/t/aos-ssl-connection-error/2726/4 "2022-06-08T15:26:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Gandangf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/gandangf/32/795_2.png) [@Gandangf](https://forum.heroiclabs.com/u/Gandangf)\
**Post date:** [June 9, 2022, 2:10am UTC](https://forum.heroiclabs.com/t/aos-ssl-connection-error/2726/5 "2022-06-09T02:10:28Z")

</div>

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