Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--Plugin iissites no longer working with IIS 7.5 #722

Closed
rdaunce opened this issue Jan 29, 2018 · 0 comments
Closed

--Plugin iissites no longer working with IIS 7.5 #722

rdaunce opened this issue Jan 29, 2018 · 0 comments

Comments

@rdaunce
Copy link

rdaunce commented Jan 29, 2018

I have been successfully using V1.9.6.2 and began having an issue setting up new sites, so I upgraded to V1.9.8.2. I attempted to run the same commands that previously worked fine and it throws an exception saying there is an invalid --webroot parameter. Here is the output with debug logging enabled:

C:\utilities\letsencrypt-win-simple>letsencrypt.exe --plugin iissites --siteid 6
,7
[DBUG] Options: Options {BaseUri="https://acme-v01.api.letsencrypt.org/", Test=
True, Verbose=True, Renew=False, ForceRenewal=False, Plugin="iissites", SiteId="
6,7", ExcludeBindings=null, HideHttps=False, ManualHost=null, ManualTargetIsIIS=
False, Validation=null, ValidationMode="http-01", WebRoot=null, ValidationSiteId
=null, Warmup=False, UserName=null, Password=null, AzureTenantId=null, AzureClie
ntId=null, AzureSecret=null, AzureSubscriptionId=null, AzureResourceGroupName=nu
ll, DnsCreateScript=null, DnsDeleteScript=null, KeepExisting=False, CentralSslSt
ore=null, CertificateStore=null, Installation=[], InstallationSiteId=null, SSLPo
rt=443, Script=null, ScriptParameters=null, CloseOnFinish=False, NoTaskScheduler
=False, UseDefaultTaskUser=False, Cancel=False, AcceptTos=False, EmailAddress=nu
ll}
[DBUG] Test parameter set: https://acme-staging.api.letsencrypt.org/
[DBUG] Config folder: C:\ProgramData\letsencrypt-win-simple\httpsacme-staging.a
pi.letsencrypt.org

[INFO] Let's Encrypt Windows Simple (LEWS)
[INFO] Software version 198.2.6594.21512 (RELEASE)
[INFO] IIS version 7.5
[INFO] ACME Server https://acme-staging.api.letsencrypt.org/
[INFO] Please report issues at https://github.com/Lone-Coder/letsencrypt-win-si
mple

[DBUG] Renewal period: 55
[INFO] Running in Unattended mode
[DBUG] Scanning IIS sites
[INFO] Plugin IISSites generated target [IISSites] 6,7 (SiteId -1) [5 bindings
my.domain.com, ... @ x]
[EROR] Directory C:\utilities\letsencrypt-win-simple\x does not exist
[EROR] Invalid validation input
System.ArgumentException: Invalid --webroot x: Enter a site path (the web root o
f the host for http authentication)
at LetsEncrypt.ACME.Simple.Plugins.ValidationPlugins.BaseHttpValidationFactor
y`1.Default(Target target, IOptionsService optionsService)
at LetsEncrypt.ACME.Simple.Plugins.ValidationPlugins.Http.FileSystemFactory.D
efault(Target target, IOptionsService optionsService)
at LetsEncrypt.ACME.Simple.Program.CreateNewCertificate(RunLevel runLevel)

I'm running this on Windows Server 2008 R2, IIS 7.5. The --webroot parameter can't be passed because this is a command to create a multi-site SAN certificate and there are multiple webroots involved. The program should be pulling the relevant webroot from IIS for each siteid provided. I tried passing different combinations of siteids and even tried it with only 1 siteid, but all attempts result in the same error.

I was able to get things working again by downgrading to 1.9.7.2 - the last release prior to the major architecture changes. In that vesion, the SAN cert is created, installed, and all IIS bindings are created. Obviously this isn't the ideal solution but it will keep me up and running until this is resolved..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants