# Renew Letsencrypt SSL certificate in Mattermost AWS

**URL:** <https://forum.mattermost.com/t/renew-letsencrypt-ssl-certificate-in-mattermost-aws/3721>\
**Category:** Troubleshooting\
**Created:** [August 21, 2017, 2:02am UTC](https://forum.mattermost.com/t/renew-letsencrypt-ssl-certificate-in-mattermost-aws/3721 "2017-08-21T02:02:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kongyc](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@kongyc](https://forum.mattermost.com/u/kongyc)\
**Post date:** [August 21, 2017, 2:02am UTC](https://forum.mattermost.com/t/renew-letsencrypt-ssl-certificate-in-mattermost-aws/3721/1 "2017-08-21T02:02:18Z")

</div>

Hi all,

I’ve just installed my Mattermost Team Edition v4.0 in my AWS EC2 instance. I’ve configured the TLS based on the documentation at  
[https://docs.mattermost.com/install/install-rhel-71.html#configuring-tls-on-mattermost-server](https://docs.mattermost.com/install/install-rhel-71.html#configuring-tls-on-mattermost-server)

1. Changed the Listeing address to :443
2. Changed Connection Security to TLS
3. Forward port 80 to 443 setting to TRUE

Ok now when I start the Mattermost service, it seems fine and works with no issue. Letsencrypt will automatically help me to install the certificate.

But there is one thing that I’m concerning about, since Letsencrypt SSL will only last for 90 days, is it going to renew the cert for me automatically after 90 days?

For your information I don’t have apache or nginx installed in my mattermost server.

Thank you.  
Best regards,  
Kong

---

<div class="post-metadata">

**Author:** ![prixone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/prixone/32/1184_2.png) [@prixone](https://forum.mattermost.com/u/prixone)\
**Post date:** [August 21, 2017, 3:42am UTC](https://forum.mattermost.com/t/renew-letsencrypt-ssl-certificate-in-mattermost-aws/3721/2 "2017-08-21T03:42:31Z")

</div>

If you setup a schedule task, it will run and update it, yes.

The schedule task procedure is described at the bottom of the link you posted above:

> Configure cron so that the certificate will automatically renew every month.
> 
> crontab -e
> 
> In the following line, use your own domain name in place of {domain-name}
> 
> @monthly /home/ubuntu/letsencrypt/letsencrypt-auto certonly --reinstall --nginx -d {domain-name} && sudo service nginx reload

Make sure you replace the paths with the ones you have used in your installation.

And since you don’t have nginx or apache you can skip this later part of the above command:

```auto
&& sudo service nginx reload

```

---

<div class="post-metadata">

**Author:** ![gcommit](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@gcommit](https://forum.mattermost.com/u/gcommit)\
**Post date:** [August 25, 2020, 3:25pm UTC](https://forum.mattermost.com/t/renew-letsencrypt-ssl-certificate-in-mattermost-aws/3721/3 "2020-08-25T15:25:47Z")

</div>

Hello

what about when i am using integrated Let’s encrypt?  
So i enable port-forwarding, TLS and Let’s Encrypt in the config.json and my certs are generated correctly. How to renew them?

Because that way, you don’t install certbot or something else related.

In the documentation i found nothing. No information about that.
