Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x509: certificate signed by unknown authority #173

Closed
Imperial-Guard opened this issue Mar 25, 2019 · 4 comments
Closed

x509: certificate signed by unknown authority #173

Imperial-Guard opened this issue Mar 25, 2019 · 4 comments

Comments

@Imperial-Guard
Copy link

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
Copy link

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
Copy link

colachg commented Apr 25, 2019

@werty1st Thanks, it works!

@abiosoft
Copy link
Owner

Fixed with #202

@Askill
Copy link

Askill commented Oct 24, 2019

I am getting the same error with the latest image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants