# \[SOLVED\] Unable to connect to Matermost server when secure connection is Enabled

**URL:** <https://forum.mattermost.com/t/solved-unable-to-connect-to-matermost-server-when-secure-connection-is-enabled/4359>\
**Category:** Troubleshooting\
**Created:** [January 12, 2018, 6:31pm UTC](https://forum.mattermost.com/t/solved-unable-to-connect-to-matermost-server-when-secure-connection-is-enabled/4359 "2018-01-12T18:31:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RbDev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/rbdev/32/1827_2.png) [@RbDev](https://forum.mattermost.com/u/RbDev)\
**Post date:** [January 12, 2018, 6:31pm UTC](https://forum.mattermost.com/t/solved-unable-to-connect-to-matermost-server-when-secure-connection-is-enabled/4359/1 "2018-01-12T18:31:05Z")

</div>

my server(4.6.0) is working great and clients are connecting using [http://myserver:8065](http://myserver:8065)

Now I’m trying to enable secure connection using TLS and Let’s Encrypt Key. It seems to be an easy task but I’m unable to connect to the server once those are enabled via admin console and after service restart.

Any toughts? Am I missing something?

Cheers.

---

<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:** [January 18, 2018, 3:58pm UTC](https://forum.mattermost.com/t/solved-unable-to-connect-to-matermost-server-when-secure-connection-is-enabled/4359/2 "2018-01-18T15:58:20Z")

</div>

Hi @RbDev,

Thanks for your feedback,

Perhaps [this documentation](https://docs.mattermost.com/install/config-tls-mattermost.html) will help?

This [forum post](https://forum.mattermost.com/t/solved-unable-to-start-webserver-using-tls-access-is-denied-win64/3469) might also help with troubleshooting?

---

<div class="post-metadata">

**Author:** ![RbDev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/rbdev/32/1827_2.png) [@RbDev](https://forum.mattermost.com/u/RbDev)\
**Post date:** [January 18, 2018, 4:17pm UTC](https://forum.mattermost.com/t/solved-unable-to-connect-to-matermost-server-when-secure-connection-is-enabled/4359/3 "2018-01-18T16:17:17Z")

</div>

Hi Lindy,

I’ve tried using the documentation but I can’t use port 443. This is being used by my webserver.

Mattermost Settings:  
Port: 8065  
Connection Security: TLS  
Forward Port 80 to 443: False  
Activate CAP\_NET\_BIND\_SERVICE: No since this seems to only be needed for 443 port.  
Use Let’s Encrypt: True  
Service Restart.  
Can’t log in.

The forum you linked seems to be related to specific TLS key. It should not affect Let’s Encrypt.

The log doesnt point any issues.

Let me know your toughts.

---

<div class="post-metadata">

**Author:** ![RbDev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/rbdev/32/1827_2.png) [@RbDev](https://forum.mattermost.com/u/RbDev)\
**Post date:** [January 22, 2018, 10:44pm UTC](https://forum.mattermost.com/t/solved-unable-to-connect-to-matermost-server-when-secure-connection-is-enabled/4359/4 "2018-01-22T22:44:12Z")

</div>

I really appreciate help here. I dont like to leave my messages unencrypted.

Let me know if you need any other info.

Cheers

---

<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:** [January 23, 2018, 8:13am UTC](https://forum.mattermost.com/t/solved-unable-to-connect-to-matermost-server-when-secure-connection-is-enabled/4359/5 "2018-01-23T08:13:02Z")

</div>

Hi @RbDev,

I’ve asked our engineers for help on this one and will get back to you as soon as I have their feedback 🙂

---

<div class="post-metadata">

**Author:** ![saturnino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/saturnino/32/1353_2.png) [@saturnino](https://forum.mattermost.com/u/saturnino)\
**Post date:** [January 23, 2018, 12:30pm UTC](https://forum.mattermost.com/t/solved-unable-to-connect-to-matermost-server-when-secure-connection-is-enabled/4359/6 "2018-01-23T12:30:26Z")

</div>

@RbDev As mentioned in the documentation, there are 2 options to setup TLS. It seems setting up TLS from Mattermost server is not possible to you since you cannot setup `Forward80To443` to true. In that case, I suggest you go on configuring [NGINX with SSL](https://docs.mattermost.com/install/config-ssl-http2-nginx.html?highlight=nginx). Before doing that, make sure to follow guide in configuring [NGINX](https://docs.mattermost.com/install/config-proxy-nginx.html?highlight=nginx) as proxy server for Mattermost.

---

<div class="post-metadata">

**Author:** ![RbDev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/rbdev/32/1827_2.png) [@RbDev](https://forum.mattermost.com/u/RbDev)\
**Post date:** [January 23, 2018, 5:12pm UTC](https://forum.mattermost.com/t/solved-unable-to-connect-to-matermost-server-when-secure-connection-is-enabled/4359/7 "2018-01-23T17:12:26Z")

</div>

In that case I will wait for the url subdirectory support implementation to have SSL done by my webserver via proxypass

> <https://github.com/mattermost/mattermost-server/issues/7490#issuecomment-334041774>
