Hello. It is hosted on AWS. There is a firewall, but was working OK before I added Certbot. Do I have to make some changes to the firewall for this to work?
–2019-05-01 14:57:04-- http://localhost/
Resolving localhost (localhost)… 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: https://localhost/ [following]
–2019-05-01 14:57:04-- https://localhost/
Connecting to localhost (localhost)|127.0.0.1|:443… connected.
ERROR: no certificate subject alternative name matches
requested host name ‘localhost’.
To connect to localhost insecurely, use `–no-check-certificate’.
wget localhost --no-check-certificate
–2019-05-01 14:59:11-- http://localhost/
Resolving localhost (localhost)… 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: https://localhost/ [following]
–2019-05-01 14:59:11-- https://localhost/
Connecting to localhost (localhost)|127.0.0.1|:443… connected.
WARNING: no certificate subject alternative name matches
requested host name ‘localhost’.
HTTP request sent, awaiting response… 200 OK
Length: 612 [text/html]
Saving to: ‘index.html’
index.html 100%[============================================================================>] 612 --.-KB/s in 0s