# SSL Termination

**URL:** <https://forum.heroiclabs.com/t/ssl-termination/268>\
**Category:** Local Setup\
**Created:** [October 10, 2019, 9:16am UTC](https://forum.heroiclabs.com/t/ssl-termination/268 "2019-10-10T09:16:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gupta-vaibhav](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/gupta-vaibhav/32/146_2.png) [@gupta-vaibhav](https://forum.heroiclabs.com/u/gupta-vaibhav)\
**Post date:** [October 10, 2019, 9:16am UTC](https://forum.heroiclabs.com/t/ssl-termination/268/1 "2019-10-10T09:16:31Z")

</div>

What’s the recommended way to add ssl to the server. I see that I can provide the cert and key in config file, but the Description also says that it is NOT recommended for production use.

Do I need to terminate SSL on load balancer, or write a wrapper to terminate SSL and then pass the data to the game server?

Thanks,

---

<div class="post-metadata">

**Author:** ![AlimJaffer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/alimjaffer/32/17_2.png) [@AlimJaffer](https://forum.heroiclabs.com/u/AlimJaffer)\
**Post date:** [October 10, 2019, 3:13pm UTC](https://forum.heroiclabs.com/t/ssl-termination/268/2 "2019-10-10T15:13:48Z")

</div>

Hello Gupta - you’re correct, the best path is to use a load balancer to handle SSL termination. It’s how we handle it in [our Managed Cloud](https://heroiclabs.com/managed-cloud/) as well. This reduces the computational burden on Nakama as well as improving security.
