[CLAUDE] Scripts: fix setup-ssl.ps1 --installationsiteid flag
Some checks failed
Deploy SOLUTION_ERP / build-backend (push) Failing after 8s
Deploy SOLUTION_ERP / build-fe-admin (push) Has been cancelled
Deploy SOLUTION_ERP / build-fe-user (push) Has been cancelled
Deploy SOLUTION_ERP / deploy-iis (push) Has been cancelled

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:
pqhuy1987
2026-04-21 14:19:26 +07:00
parent 169e268b28
commit 45452765e3

View File

@ -61,12 +61,13 @@ foreach ($d in $domains) {
# --installation iis -> auto bind HTTPS 443 + http->https redirect # --installation iis -> auto bind HTTPS 443 + http->https redirect
# --accepttos -> accept Let's Encrypt terms # --accepttos -> accept Let's Encrypt terms
# --emailaddress -> contact email for expiry alerts # --emailaddress -> contact email for expiry alerts
$siteId = (Get-Website $d.Site).Id
$wacsArgs = @( $wacsArgs = @(
"--target", "manual", "--target", "manual",
"--host", $d.HostName, "--host", $d.HostName,
"--siteid", (Get-Website $d.Site).Id,
"--store", "certificatestore", "--store", "certificatestore",
"--installation", "iis", "--installation", "iis",
"--installationsiteid", $siteId,
"--accepttos", "--accepttos",
"--emailaddress", "admin@huypham.vn" "--emailaddress", "admin@huypham.vn"
) )