Skip to content

Server Certificate #991

Answered by mike-hodgson
heaivilin asked this question in Q&A
Aug 1, 2023 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @heaivilin.

I don't know if it will work with all dbatools commands, but I believe the variable you're after is "sql.connection.trustcert":

Get-DbatoolsConfig -FullName sql.connection.trustcert

Have you tried setting that to $true? @potatoqualitee mentioned it briefly about half way down this page:
https://blog.netnerds.net/2023/03/new-defaults-for-sql-server-connections-encryption-trust-certificate/

"sql.connection.encrypt" is another related variable, if you'd like to disable the encryption entirely for your connections to SQL instances.

There's also a handy command to go "insecure" for the current user/environment (which just sets those 2 variables I believe):
Set-DbatoolsInsecureCo…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@heaivilin
Comment options

Answer selected by heaivilin
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #990 on August 02, 2023 13:26.