Open carragom opened 5 years ago
OS: Windows 2012 R2 Powershell: 5.1 Webserver: IIS
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:
Complete-ACMEChallenge
Complete-ACMEChallenge -IdentifierRef portal -ChallengeType http-01 -Handler iis -HandlerParameters @{WebSiteRef = 'Portal'}
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:
iis
Portal
Get-Website
Name ID State Physical Path Bindings ---- -- ----- ------------- -------- Portal 2 Started C:\inetpub\wwwroot https *:443: sslFlags=0
Any idea what am I doing wrong ?
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
The Error
Looks like the
iis
handler can't find my IIS sitePortal
but if I doGet-Website
I get the following:Any idea what am I doing wrong ?