# Unable to reach my server with TLS/Let's Encrypt option enabled

**URL:** <https://forum.mattermost.com/t/unable-to-reach-my-server-with-tls-lets-encrypt-option-enabled/7102>\
**Category:** Troubleshooting\
**Created:** [April 16, 2019, 9:19pm UTC](https://forum.mattermost.com/t/unable-to-reach-my-server-with-tls-lets-encrypt-option-enabled/7102 "2019-04-16T21:19:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hindrik-H](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/hindrik-h/32/5441_2.png) [@Hindrik-H](https://forum.mattermost.com/u/Hindrik-H)\
**Post date:** [April 16, 2019, 9:19pm UTC](https://forum.mattermost.com/t/unable-to-reach-my-server-with-tls-lets-encrypt-option-enabled/7102/1 "2019-04-16T21:19:41Z")

</div>

Hey everyone,

I’m here because I can’t reach my server after following process [https://docs.mattermost.com/install/config-tls-mattermost.html](https://docs.mattermost.com/install/config-tls-mattermost.html) :  
**Listen Address** setting to `:443` .  
**Connection Security** setting to `TLS` .  
**Forward port 80 to 443** setting to `true` .  
`sudo setcap cap_net_bind_service=+ep /opt/mattermost/bin/mattermost` done  
**Use Let’s Encrypt** setting to `true` .  
Restart the Mattermost server for these changes to take effect.

My config.json :  
“SiteURL”: “mattermost.mydomainname:443”,  
“WebsocketURL”: “”,  
“LicenseFileLocation”: “”,  
“ListenAddress”: “:443”,  
“ConnectionSecurity”: “TLS”,  
“TLSCertFile”: “”,  
“TLSKeyFile”: “”,  
“TLSMinVer”: “1.2”,  
“TLSStrictTransport”: false,  
“TLSStrictTransportMaxAge”: 63072000,  
“TLSOverwriteCiphers”: [],  
“UseLetsEncrypt”: true,  
“LetsEncryptCertificateCacheFile”: “./config/letsencrypt.cache”,  
“Forward80To443”: true,

It’s ok when i’m restarting my mattermost service, but on a web browser, nothing works.

In fact, it’s the same problem as the following topic : [[SOLVED] Unable to connect to Matermost server when secure connection is Enabled](https://forum.mattermost.com/t/solved-unable-to-connect-to-matermost-server-when-secure-connection-is-enabled/4359)  
But in my situation my “Forward80To443” is set to “true”.

Did i miss something ?

Many thanks in advance. 🙂

---

<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:** [April 17, 2019, 10:30pm UTC](https://forum.mattermost.com/t/unable-to-reach-my-server-with-tls-lets-encrypt-option-enabled/7102/2 "2019-04-17T22:30:21Z")

</div>

Hi @Hindrik-H,

What error messages are you seeing? Are you using Nginx?

---

<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:** [April 18, 2019, 10:00pm UTC](https://forum.mattermost.com/t/unable-to-reach-my-server-with-tls-lets-encrypt-option-enabled/7102/3 "2019-04-18T22:00:33Z")

</div>

try changing the siteurl to {url}:80

---

<div class="post-metadata">

**Author:** ![Hindrik-H](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/hindrik-h/32/5441_2.png) [@Hindrik-H](https://forum.mattermost.com/u/Hindrik-H)\
**Post date:** [April 18, 2019, 10:59pm UTC](https://forum.mattermost.com/t/unable-to-reach-my-server-with-tls-lets-encrypt-option-enabled/7102/4 "2019-04-18T22:59:29Z")

</div>

Nop, I didn’t use apache or nginx.

---

<div class="post-metadata">

**Author:** ![Hindrik-H](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/hindrik-h/32/5441_2.png) [@Hindrik-H](https://forum.mattermost.com/u/Hindrik-H)\
**Post date:** [April 18, 2019, 11:00pm UTC](https://forum.mattermost.com/t/unable-to-reach-my-server-with-tls-lets-encrypt-option-enabled/7102/5 "2019-04-18T23:00:25Z")

</div>

Thank you for your help but It doesn’t change anything…  
Maybe i’ll try with nginx as a proxy
