# LetsEncrypt, EC2, 502 and 504 Errors

**URL:** https://discourse.roots.io/t/letsencrypt-ec2-502-and-504-errors/13826
**Category:** trellis
**Created:** 2018-10-11T22:05:23Z
**Posts:** 6
**Showing post:** 5 of 6

## Post 5 by @ben — 2018-10-12T02:55:40Z

> [@Let's Encrypt: Could not access the challenge file for the hosts/domain](https://discourse.roots.io/t/lets-encrypt-could-not-access-the-challenge-file-for-the-hosts-domain/6457/12):
>
> One thing to note if using AWS EC2, make sure you add HTTP and HTTPS to the Security Group for inbound traffic. It will show you the same error if not.

---

_[View the full topic](https://discourse.roots.io/t/letsencrypt-ec2-502-and-504-errors/13826)._
