# Issues with TLS

**URL:** <https://forum.mattermost.com/t/issues-with-tls/4696>\
**Category:** Troubleshooting\
**Created:** [March 26, 2018, 4:03pm UTC](https://forum.mattermost.com/t/issues-with-tls/4696 "2018-03-26T16:03:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarKco](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/markco/32/1964_2.png) [@MarKco](https://forum.mattermost.com/u/MarKco)\
**Post date:** [March 26, 2018, 4:03pm UTC](https://forum.mattermost.com/t/issues-with-tls/4696/1 "2018-03-26T16:03:43Z")

</div>

Hello everybody,  
I’m having issues with TLS enabling. In my server I configured a lot of virtualHosts plus the mattermost files. In http everything was working fine.

Today I tried to setup TLS and https. I followed the instuctions as in [https://docs.mattermost.com/install/config-tls-mattermost](https://docs.mattermost.com/install/config-tls-mattermost) .html. Now I get this:

![mattermost](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex020/uploads/mattermost/original/2X/c/c2e626c65c44b42f14926cbd65a62d4fdc80bd74.PNG)

Please notice the error: I’m trying to access domain1.mywebsite .com and the error is “its security certificate is signed by domain2.mywebsite .com”. domain2.mywebsite .com is one of the websites configured as virtualhosts in apache.

I did not configure any virtualhost for Mattermost, since I don’t thing any is needed (and it worked flawlessly without one, and without TLS). But how can I tell mattermost (or the browser?) that the server of domain2.mywebsite .com is the same of domain1.mywebsite .com?

I generated the certificates using letsencrypt with the standalone option (`sudo certbot certonly --standalone -d domain1.mywebsite .com`) and didn’t move any file, just enabled “UseLetsEncrypt”: true, in config.json file.

Do you happen to have any idea about how I could fix this?

Thank you  
Marco

---

<div class="post-metadata">

**Author:** ![hwcltjn](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@hwcltjn](https://forum.mattermost.com/u/hwcltjn)\
**Post date:** [March 26, 2018, 9:41pm UTC](https://forum.mattermost.com/t/issues-with-tls/4696/2 "2018-03-26T21:41:11Z")

</div>

Hi Marco, are you using NGINX?  
If not, you don’t need to use certbot.  
If you are, can you post your nginx configuration?

---

<div class="post-metadata">

**Author:** ![MarKco](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/markco/32/1964_2.png) [@MarKco](https://forum.mattermost.com/u/MarKco)\
**Post date:** [March 26, 2018, 10:13pm UTC](https://forum.mattermost.com/t/issues-with-tls/4696/3 "2018-03-26T22:13:24Z")

</div>

Hello hwcltjn,  
thank you for your kind answer! Actually I’m not using Nginx, I just have an Apache installation (as far as I know). Why should I not need certbot?

---

<div class="post-metadata">

**Author:** ![hwcltjn](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@hwcltjn](https://forum.mattermost.com/u/hwcltjn)\
**Post date:** [March 27, 2018, 3:20pm UTC](https://forum.mattermost.com/t/issues-with-tls/4696/4 "2018-03-27T15:20:49Z")

</div>

So you’re running Apache and Mattermost on the same server correct?

Which ports are you using for Mattermost?  
Does your website have it’s own SSL certificate?  
Can you post your Apache config? I’m not great with Apache but it might help with troubleshooting.

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [May 4, 2018, 12:39am UTC](https://forum.mattermost.com/t/issues-with-tls/4696/5 "2018-05-04T00:39:31Z")

</div>

Hi @MarKco, Following up on this - did you receive assistance to this elsewhere or do you still need help with this? If you still need assistance please let me know and I will ask one of our engineers to take a look.

---

<div class="post-metadata">

**Author:** ![MarKco](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/markco/32/1964_2.png) [@MarKco](https://forum.mattermost.com/u/MarKco)\
**Post date:** [May 7, 2018, 5:38pm UTC](https://forum.mattermost.com/t/issues-with-tls/4696/6 "2018-05-07T17:38:58Z")

</div>

Hello Amy,  
to be honest, in the meantime my boss decided Mattermost is not so much better than Skype for our needs (sorry to have to write that) and therefore we removed it from our servers.

Thank you for asking, anyway, that was very kind.

Good night  
Marco

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [May 10, 2018, 11:24am UTC](https://forum.mattermost.com/t/issues-with-tls/4696/7 "2018-05-10T11:24:28Z")

</div>

Sorry to hear this @MarKco ☹

Please let us know if you need help installing in the future and we’ll be happy to assist 👍
