# Self Hosted - Bad Certificate TLS

**URL:** <https://forum.mattermost.com/t/self-hosted-bad-certificate-tls/16336>\
**Category:** Troubleshooting\
**Created:** [July 5, 2023, 1:06am UTC](https://forum.mattermost.com/t/self-hosted-bad-certificate-tls/16336 "2023-07-05T01:06:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rochus](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@Rochus](https://forum.mattermost.com/u/Rochus)\
**Post date:** [July 5, 2023, 1:06am UTC](https://forum.mattermost.com/t/self-hosted-bad-certificate-tls/16336/1 "2023-07-05T01:06:29Z")

</div>

Hi,

I have setup mattermost on a private server. I can launch MatterMost and configure it from the UI on the server, however I can’t access it the site URL from a remote machine. I have created my own TLS certificates as per this [tutorial](https://www.linode.com/docs/guides/create-a-self-signed-tls-certificate/).

In the logs of MatterMost I see the following:

```auto
{"level":"info","ts":1688518064.3059509,"caller":"http/h2_bundle.go:4352","msg":"http2: server: error reading preface from client 127.0.0.1:56980: remote error: tls: bad certificate","source":"httpserver"}
{"level":"info","ts":1688518110.2641847,"caller":"http/server.go:1743","msg":"http: TLS handshake error from 127.0.0.1:56982: EOF","source":"httpserver"}
{"level":"info","ts":1688518110.278933,"caller":"http/h2_bundle.go:4352","msg":"http2: server: error reading preface from client 127.0.0.1:56984: remote error: tls: bad certificate","source":"httpserver"}

```

It isn’t clear why the certificate is bad. Is it that the certificate is not from a CA ? How can I learn more about this issue ?

Any help will be appreciated
