aloopkin / WinCertes

An ACMEv2 client for Windows
GNU General Public License v3.0
119 stars 28 forks source link

Only works with default C:\Inetpub\wwwroot folder #22

Closed pgordinho closed 4 years ago

pgordinho commented 4 years ago

If a website uses non default physical path WinCertes still creates the challange file in C:\Inetpub\wwwroot . It should get that information from IIS and create de folder accordingly.

As a workaround it's possible to create the ".well-known" folder in C:\inetpub\wwwroot\ and add the virtual directory ".well-known" in the site, pointing to C:\inetpub\wwwroot.well-known.

aloopkin commented 4 years ago

Actually, in the current version, setting it in the registry should solve the issue (HKLM\Software\WinCertes). Seems there's a bug in the library handling the options, will get that fixed in next release.

aloopkin commented 4 years ago

After making some tests, i'm not sure it was a DLL issue.

Please try with -w=C:\other\path (notice the "=", as specified in the help)

pgordinho commented 4 years ago

Please try with -w=C:\other\path (notice the "=", as specified in the help)

Specifying -w=C:\other\path works fine!

Thanks

MarcoGiorgi commented 3 years ago

It doesn't work for multiple site because you have to specify the full path to the website you want to get the certificate. In example if you have the you sites in the folder c:\Webs, the flag -w=C:\Webs doesn't work. You need to specify: -w=C:\Webs\WebsiteA which is the folder that contains the website and not the root.

This is the only way I've got the app to write the .well-known folder for verification