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

Complete-ACMEChallenge : unresolved site for given site reference #29

Closed
carragom opened this issue May 5, 2019 · 1 comment
Closed

Comments

@carragom
Copy link

carragom commented May 5, 2019

Environment

OS: Windows 2012 R2
Powershell: 5.1
Webserver: IIS

Description

Trying to automate my IIS server certificate using this ACME client. I followed the docs (including all the validation steps) up to the command Complete-ACMEChallenge:

The Exact Command

Complete-ACMEChallenge -IdentifierRef portal -ChallengeType http-01 -Handler iis -HandlerParameters @{WebSiteRef = 'Portal'}

The Error

Complete-ACMEChallenge : unresolved site for given site reference
At line:1 char:1
+ Complete-ACMEChallenge -IdentifierRef portal -ChallengeType http-01 - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Complete-ACMEChallenge], InvalidOperationException
    + FullyQualifiedErrorId : System.InvalidOperationException,ACMESharp.POSH.CompleteChallenge

Looks like the iis handler can't find my IIS site Portal but if I do Get-Website I get the following:

Name             ID   State      Physical Path                  Bindings
----             --   -----      -------------                  --------
Portal           2    Started    C:\inetpub\wwwroot             https *:443: sslFlags=0

Any idea what am I doing wrong ?

@glatzert
Copy link
Collaborator

glatzert commented May 6, 2019

Well, besides I'm not the maintainer of the old module, I read parts of @ebekker s code and saw, that it should (at first glance) be correct. If I read correct, you should also be able to use the ID of the Site as WebSiteRef - perhaps that helps?

Else I'd suggest you either ask on gitter, where @ebekker is active or reopen the issue in the appropriate Repository, which is: https://github.com/ebekker/ACMESharp

@glatzert glatzert closed this as completed May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants