Hi @Florentina
Here is the documentation on fixing certificate chain errors that you can use as a reference: "The certificate received from the remote server was issued by an untrusted certificate authority" error when you connect to SQL Server.
Regarding the error "System.ArgumentException: 'Keyword not supported: 'trust server certificate''", removing the space between Trust Server Certificate
may be effective. You can check out this thread: https://learn.microsoft.com/en-us/answers/questions/1195871/having-issue-with-keyword-not-supported-trust-serv.
Maybe you can try unchecking the checkbox and see what the TrustServerCertificate property in Advanced Properties looks like.
My VS version is 16.11.26, and its TrustServerCertificate attribute has no spaces.
For older versions of Visual Studio you can check this link: https://visualstudio.microsoft.com/vs/older-downloads/.
If the answer is helpful, please click Accept Answer
and Up-Vote
for the same. If you have any questions, please feel free to let me know.
Best regards,
Aniya