# Sharing my self signed certificate validation code for Nakama-dotnet

**URL:** <https://forum.heroiclabs.com/t/sharing-my-self-signed-certificate-validation-code-for-nakama-dotnet/1729>\
**Category:** Showcase\
**Tags:** authentication, sdk-unity\
**Created:** [June 22, 2021, 2:47pm UTC](https://forum.heroiclabs.com/t/sharing-my-self-signed-certificate-validation-code-for-nakama-dotnet/1729 "2021-06-22T14:47:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elix22](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@elix22](https://forum.heroiclabs.com/u/elix22)\
**Post date:** [June 22, 2021, 2:47pm UTC](https://forum.heroiclabs.com/t/sharing-my-self-signed-certificate-validation-code-for-nakama-dotnet/1729/1 "2021-06-22T14:47:58Z")

</div>

I needed some support of validating self signed server SSL certificates on the [nakama-dotnet] client side .  
I couldn’t find anything relevant so I wrote some support for it on my own repo [nakama-dotnet](https://github.com/elix22/nakama-dotnet)

Relevant commits and some Gist example on how to use it  
Sorry as a new user I can add only 2 links 🙂

**Commits:**  
02190b4deae22b607d63a9deed87a32de9689c77  
fdee6c2a5bdbba86a306518ad22edc96c95d9c10

**Example:**

> <https://gist.github.com/elix22/601461e5dc1bc5d5561166fe330fc470>

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [June 26, 2021, 11:35am UTC](https://forum.heroiclabs.com/t/sharing-my-self-signed-certificate-validation-code-for-nakama-dotnet/1729/2 "2021-06-26T11:35:03Z")

</div>

@elix22 Thanks for the contribution. We’d be happy to take a look at the work as a pull request on the .NET client. Is there a specific reason you need to support self-signed certificates instead of using free certificates like what LetsEncrypt provides?

---

<div class="post-metadata">

**Author:** ![elix22](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@elix22](https://forum.heroiclabs.com/u/elix22)\
**Post date:** [June 27, 2021, 6:39pm UTC](https://forum.heroiclabs.com/t/sharing-my-self-signed-certificate-validation-code-for-nakama-dotnet/1729/3 "2021-06-27T18:39:27Z")

</div>

I didn’t want to complicate things so I chose to use a self signed SSL certificate .  
Followed this link as a reference in setting up my Linux server side (didn’t use G.C.E.):  
[Setting up a game server using Nakama on Google Compute Engine, part 4 · SteveStreeting.com](https://www.stevestreeting.com/2018/05/30/setting-up-a-game-server-using-nakama-on-google-compute-engine-part-4/)

Feel free to use the code in any way possible …
