abiosoft / caddy-docker

Docker container for Caddy
https://hub.docker.com/r/abiosoft/caddy/
MIT License
768 stars 315 forks source link

x509: certificate signed by unknown authority #173

Closed Imperial-Guard closed 5 years ago

Imperial-Guard commented 5 years ago

Activating privacy features... 2019/03/25 12:18:28 [INFO][FileStorage:/etc/caddycerts] Started certificate maintenance routine 2019/03/25 12:18:28 get Agreement URL: Get https://acme-v02.api.letsencrypt.org/directory: x509: certificate signed by unknown authority exit status 1

Any thoughts?

I let the docker run with the following command:

docker run --init -d --name="caddy" --restart always -v "caddy_config:/root/.caddy" -v "caddy_config:/srv" -v "caddy_config:/etc" -e "CADDYPATH=/etc/caddycerts" -e ACME_AGREE=true -v caddy_config:/etc/caddycerts -p 80:80 -p 443:443 abiosoft/caddy

werty1st commented 5 years ago

If you build you own image with custom addons you may need to add:

RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*

colachg commented 5 years ago

@werty1st Thanks, it works!

abiosoft commented 5 years ago

Fixed with https://github.com/abiosoft/caddy-docker/pull/202

Askill commented 4 years ago

I am getting the same error with the latest image