How to use existing certificate in windows certificate manager

1. Caddy version (caddy version):

v2.4.6 h1:HGkGICFGvyrodcqOOclHKfvJC0qTU7vny/7FhYp9hNw=

2. How I run Caddy:

Windows service runs caddy

a. System environment:

Windows

b. Command:

caddy.exe run --config ./Caddyfile

c. Service/unit/compose file:

d. My complete Caddyfile or JSON config:

3. The problem I’m having:

We are moving from IIS to caddy, the certificate was already imported to the Windows certificate manager and used in the IIS. Is there any way to use the same certificate for the caddy? the customer doesn’t want to provide the certificate in any other way rather than installing it in the certificate manager.

4. Error messages and/or full log output:

5. What I already tried:

6. Links to relevant resources:

There’s no built-in way to do so right now.

What you could do, if you have the development resources, is to write a new certificate manager plugin which fetches the cert from Windows.

Caddy has HTTP (and Tailscale) certificate manager modules built-in (as of v2.5.0), so you could set up a little HTTP server that fetches them for you, if you rather do it that way instead of writing a Caddy plugin.