dkebler
(David Kebler)
July 28, 2020, 12:43am
1
Is there any reason I can’t use a cert that caddy grabbed for serving pages for the underlying websocket server of a database used by that site? both caddy and this db server are on the same machine so maybe as simple as telling db server where to find the cert file?
dkebler
(David Kebler)
July 28, 2020, 4:19am
2
I answered my own question. The answer is yes which is convenient. look in .local/share/caddy to find the certs.
matt
(Matt Holt)
July 28, 2020, 5:03am
3
That’s right! In fact, Caddy can be used as a stand-alone certificate manager/renewer, without a web server:
You can use Caddy as an automated certificate manager to keep certificates renewed without having to run an HTTPS server [1]. This way, the certificates can be used by other programs that need them.
Caddy’s tls app can be configured without the need for an HTTP server. It can keep certificates renewed. Without additional configuration, assets (certificates, keys, and metadata) are stored in a data directory on the local file system at a location dependent upon your OS .
The simplest form is to …
Thanks for posting your findings.