Skip to content

Caddy does not trust its own Local CA - x509 #7361

@tctlrd

Description

@tctlrd

Issue Details

Running the latest caddy in a container. Caddy does not trust its own local CA. Even though it is successfully installing the local CA's root into the system trust store.

I am pointing acme_ca at a local openbao acme server which is serving with caddy's local CA signed cert (acme_ca will not accept a non-tls hostname endpoint: #1592)

{"level":"info","ts":1763811706.332481,"msg":"certificate installed properly in linux trusts"}
...
ERROR tls.obtain could not get certificate from issuer ...with server: provisioning client: performing request: Get \"...pki_int/acme/directory\": tls: failed to verify certificate: x509: certificate signed by unknown authority"}

This acme_ca_root config works after a caddy restart (it does not yet exist at first launch):
acme_ca_root /data/caddy/pki/authorities/local/root.crt

Thank you for your attention to this issue!

Assistance Disclosure

AI not used

If AI was used, describe the extent to which it was used.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions