Cannot start application with dev settings due to failure to verify "localhost" certificate
Entering bin/probod -cfg-file cfg/dev.yaml into terminal returns error message, bottom line of which is
panic: cannot initialize ACME service: cannot register ACME account: cannot register account: Get "https://localhost:14000/dir": tls: failed to verify certificate: x509: “localhost” certificate is not trusted
Cannot open application with local host address, so can't run app in dev settings at all.
Hi @emimoir, thanks for reporting.
That error comes from the local Pebble ACME CA (running in docker compose) whose TLS cert isn't trusted by probod. We pushed a few fixes to the compose configuration this week that may address it.
Could you:
- Pull the latest
main. - Bring the stack fully down and back up:
make stack-down && make stack-up. - Re-run
bin/probod -cfg-file cfg/dev.yaml.
If you still see the same panic, please share:
- Your OS and architecture.
- The output of
docker compose psanddocker compose logs pebbleaftermake stack-up. - The full probod startup log (not just the last line).
- Whether you have any custom
SSL_CERT_FILE,SSL_CERT_DIR, or proxy env vars set.
Thanks!
Hi @gearnode thank you for your reply, and great it does work!