[CLAUDE] Scripts: fix setup-ssl.ps1 --installationsiteid flag
win-acme 2.2.9 with --target manual + --installation iis requires --installationsiteid (not --siteid). --siteid only applies to the iis target plugin, not the iis installation plugin. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@ -61,12 +61,13 @@ foreach ($d in $domains) {
|
||||
# --installation iis -> auto bind HTTPS 443 + http->https redirect
|
||||
# --accepttos -> accept Let's Encrypt terms
|
||||
# --emailaddress -> contact email for expiry alerts
|
||||
$siteId = (Get-Website $d.Site).Id
|
||||
$wacsArgs = @(
|
||||
"--target", "manual",
|
||||
"--host", $d.HostName,
|
||||
"--siteid", (Get-Website $d.Site).Id,
|
||||
"--store", "certificatestore",
|
||||
"--installation", "iis",
|
||||
"--installationsiteid", $siteId,
|
||||
"--accepttos",
|
||||
"--emailaddress", "admin@huypham.vn"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user