And I can’t seem to renew it.
I’m getting an unauthorize error.
My webroot I use is base on
and the command I’m using, before setting it up as a cron job, is:
sudo certbot renew --webroot --webroot-path=/home/deploy/apps/fumigate/lib/fumigate-0.1.0/priv/static
The error message it returns is:
Domain: fumigatedb.com Type: unauthorized Detail: Invalid response from https://fumigatedb.com/.well-known/acme-challenge/3YOTJBhQ8UzOB2K78V6eFLaizgrInLx_jdCCnnhJgXc [220.127.116.11]: "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\"/>\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"/>"
I’ve tried it in dev environment to get one of the controller response
send_resp(conn, 200, "Not Valid") and that works. I can’t work dev to get the valid response because my dev environment and prod is different with different ip.
So I’m working on prod live. I’ve been working at this for a day and I’ve tried creating
.well-known/acme-challenge folders in the webroot too.
I’m not sure if there is something wrong with my route when dev environment it can reach it.
The phoenix app is listening on 4000 port and 4001, all incoming 80 and 81 are routed there via iptables if that matter.