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

Request: a trustServerCertificate option for -Encrypt (code included) #30

Open
mbourgon opened this issue Jun 23, 2021 · 0 comments
Open

Comments

@mbourgon
Copy link

Right now, it requires a trusted authority sign it. I'd like to get an option for it. For what I'm doing it's easy:

            if ($Encrypt) {
                $CSBuilder["Encrypt"] = $true
                **$CSBuilder["trustServerCertificate"] = $true**
            }

However, for a real version, you'd need a variable for it, and probably a nested if.

            if ($Encrypt) {
                $CSBuilder["Encrypt"] = $true
                if ($TrustServerCert) {
                    $CSBuilder["trustServerCertificate"] = $true
                }
            }
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