Help finding where Caddy stores Certificates and Keys

1. Caddy version (caddy version):

v2.3.0 h1:fnrqJLa3G5vfxcxmOH/+kJOcunPLhSBnjgIvjXV/QTA=

2. How I run Caddy:

a. System environment:

Ubuntu 18.04 using Systemd

b. Command:

none

c. Service/unit/compose file:

paste full file contents here

d. My complete Caddyfile or JSON config:

youtube.letsauth.org {
        root * /var/www/youtube.letsauth.org/
        file_server
        reverse_proxy /api/* 127.0.0.1:3000
}

3. The problem I’m having:

I’m trying to figure out where Caddy Stores the certificate and public/private keys that it uses.

4. Error messages and/or full log output:

5. What I already tried:

I have looked at the default location ($HOME/.local/share/caddy) but I didn’t find a caddy directory.

6. Links to relevant resources:

Documentation used to figure out the default location: Conventions — Caddy Documentation

When running as a systemd service, Caddy runs as a user called caddy. Its $HOME is /var/lib/caddy.

2 Likes

A post was split to a new topic: Reusing Caddy’s certificates in other services

This topic was automatically closed after 30 days. New replies are no longer allowed.