Skip to content

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

@mbourgon

Description

@mbourgon

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
                }
            }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions