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

After upgrade getting error : The certificate chain was issued by an authority that is not trusted #12653

Closed
giannik opened this issue Oct 16, 2022 · 5 comments · Fixed by #12681 or #15210
Milestone

Comments

@giannik
Copy link
Contributor

giannik commented Oct 16, 2022

After recent upgrade with YesSQL v 3.2.0 (with schema support) I am getting the following error when loading an existing project :

image

The fix is to append to the connectionstring the setting :

;TrustServerCertificate=True

but I am wondering if this could be related to yessql upgrade ?

@MikeAlhayek
Copy link
Member

I think you need Encrypt=false in the connection string

@sebastienros you may want to shed some light here

@jtkech
Copy link
Member

jtkech commented Oct 17, 2022

You need TrustServerCertificate=True;

@MikeAlhayek
Copy link
Member

MikeAlhayek commented Oct 18, 2022

Just to clarify, you can use add Encrypt=false or TrustServerCertificate=True to the connection string to solve this issue.

The reason this is happening because YesSql is now using the new SQL client which encrypts the connection by default. So if you don't have a trusted certification on the server and want to continue to encrypt the communication using the untrusted server, add TrustServerCertificate=True to the connection string. If you want to not encrypt the communication at all, you can use Encrypt=false

Updated the notes in #12528

@ns8482e
Copy link
Contributor

ns8482e commented Oct 19, 2022

This is interesting, How do we make it self healing on upgrade?

@MikeAlhayek
Copy link
Member

@ns8482e make sure your server has a valid ssl certificate. I think you would face this issue locally only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants