Can you query API if Caddy has a valid certificate?

1. Caddy version (caddy version):

v2.4.3 h1:Y1FaV2N4WO3rBqxSYA8UZsZTQdN+PwcoOcAiZTM8C0I=

2. How I run Caddy:


a. System environment:

b. Command:

Paste command here.

c. Service/unit/compose file:

Paste full file contents here.
Make sure backticks stay on their own lines,
and the post looks nice in the preview pane.

d. My complete Caddyfile or JSON config:

Paste config here, replacing this text.
Use `caddy fmt` to make it readable.
DO NOT REDACT anything except credentials.
Make sure the backticks stay on their own lines.

3. The problem I’m having:

Not really a problem…
I just wanted to ask if there is an API for querying Caddy on a few things related to it’s run-time.
For instance, can you query to see if it has a valid certificate (yet)?

4. Error messages and/or full log output:

5. What I already tried:

6. Links to relevant resources:

What do you mean by “has”? For an active site? If so, just try a request for that site.

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