diff options
author | Francis Lavoie <[email protected]> | 2022-03-02 13:08:36 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-02 11:08:36 -0700 |
commit | bbad6931e30a2e74b3f53fff797d1115cc9dd491 (patch) | |
tree | 4db78522ec9b352b2f27f2f3a11dfa1a314ee902 /caddy.go | |
parent | 5bd96a6ac22849cd9fbbaae5285f0161e272b8e4 (diff) | |
download | caddy-bbad6931e30a2e74b3f53fff797d1115cc9dd491.tar.gz caddy-bbad6931e30a2e74b3f53fff797d1115cc9dd491.zip |
pki: Implement API endpoints for certs and `caddy trust` (#4443)
* admin: Implement /pki/certificates/<id> API
* pki: Lower "skip_install_trust" log level to INFO
See https://github.com/caddyserver/caddy/issues/4058#issuecomment-976132935
It's not necessary to warn about this, because this was an option explicitly configured by the user. Still useful to log, but we don't need to be so loud about it.
* cmd: Export functions needed for PKI app, return API response to caller
* pki: Rewrite `caddy trust` command to use new admin endpoint instead
* pki: Rewrite `caddy untrust` command to support using admin endpoint
* Refactor cmd and pki packages for determining admin API endpoint
Diffstat (limited to 'caddy.go')
-rw-r--r-- | caddy.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -427,6 +427,13 @@ func run(newCfg *Config, start bool) error { return nil } + // Provision any admin routers which may need to access + // some of the other apps at runtime + err = newCfg.Admin.provisionAdminRouters(ctx) + if err != nil { + return err + } + // Start err = func() error { var started []string |