Bug fix SSL detection on AWS