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

createbinding #8

Closed
Curtmcgirt opened this issue Jun 8, 2021 · 1 comment
Closed

createbinding #8

Curtmcgirt opened this issue Jun 8, 2021 · 1 comment

Comments

@Curtmcgirt
Copy link

the doc for new-tppcertificate says
"-CreateBinding
Specify that Trust Protection Platform should create an IIS web site binding if the one specified doesn't already exist."

except, setting it to $true attempts in vain to create the binding even if it the binding does already exist, and it throws an error, which crashes the whole script when iterating through a list with a for/foreach loop so it doesn't continue on to the next one. i'd expect it to just update bindings that already exist and create bindings that don't exist.

New-TppCapiApplication -ApplicationName $entry.fqdn -FriendlyName $entry.fqdn -Path $targetdevicepath -CertificatePath $targetcertpath -CredentialPath $winaccountpath -WinRmPort 5985 -WebSiteName $iissitename -BindingIpAddress $bindingIP -BindingHostName $entry.fqdn -CreateBinding $true -PushCertificate -Verbose

@Curtmcgirt
Copy link
Author

nevermind. the app existed in venafi; it wasn't the createbinding that did it.

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

1 participant