full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

Certificate revoked, can't access from Chrome or Safari

Open abrichr opened this issue 3 years ago • 2 comments

Issue: https://www.bleepingcomputer.com/news/security/lets-encrypt-is-revoking-lots-of-ssl-certificates-in-two-days/

Resolution:

# Delete traefik stack
docker stack rm traefik

# Delete traefik volume
docker volume ls (should see something like traefik_traefik-public-certificates)
docker volume rm traefik_traefik-public-certificates

# Populate env variables for deploying traefik (reference: https://github.com/tiangolo/full-stack-fastapi-postgresql/issues/322)
source ~/.profile
export EMAIL=$TRAEFIK_EMAIL
export HASHED_PASSWORD=$(openssl passwd -apr1 $TRAEFIK_PASSWORD)

# Re-deploy traefik stack
docker stack deploy -c traefik.yml traefik

Thanks to @0xstnick!

abrichr avatar Jan 29 '22 05:01 abrichr

I followed your steps and I get TRAEFIK DEFAULT CERT instead of Let's Encrypt certificate. on stag.domain.com but I have correct lets encrypt cert on traefik.stag.domain.com. What am I missing? Screen Shot 2022-02-01 at 08 46 59

lacriment avatar Feb 01 '22 06:02 lacriment

@lacriment, I followed this traefik article and it worked for me.

jashwant avatar Feb 15 '22 14:02 jashwant