Have you enabled LetsEncrypt and had it issue a certificate? Is your Mattermost accessible via HTTPS?