-
Notifications
You must be signed in to change notification settings - Fork 292
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
The certificate chain was issued by an authority that is not trusted. Upgrade from net-6 to Net-7 #1836
Comments
Seems like a SQL issue? What database are you connecting to? |
Read the breaking changes for EF Core 7 - due to update to SqlClient 5.0.1 |
Thanks @ErikEJ , When upgrading from EF Core 6 to EF Core 7, the dependency of https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-7.0/breaking-changes#encrypt-true |
I use MS SQL Server |
Thank you Everyone's Issue was Resolved By adding TrustServerCertificate=True; in the Connection String in AppSettings |
it work for me, thanks @Vikas8881 |
|
@proalaayahia and others, the secure (right) way to solve this is not to add |
It worked for me. |
Adding TrustServerCertificate=True to the connection string fixed this issue in entityframework 8. |
Is there an existing issue for this?
Describe the bug
Today I update the project from core 6 to 7. and after this when i try to execute any API then I get this error
Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)
---> System.ComponentModel.Win32Exception (0x80090325): The certificate chain was issued by an authority that is not trusted.
But in core 6 it's working fine.
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
7
Anything else?
No response
The text was updated successfully, but these errors were encountered: