Need trusted certificate remedy for SQL server

Al C 41 Reputation points
2022-10-14T14:03:05.257+00:00

I am running SQL server Express using SQL server driver 10.00.10941.2130. The application is totally on my home computer. No one else has access to the application. It has been recommended that I use the latest driver issued by Microsoft. I tried to update the driver and received the following error message: "[Microsoft][ODBC Driver 18 for SQL Server]SSL Provider: The certificate chain was issued by an authority that is not trusted."

My questions are (1) should I use a more current driver and (2) if yes, what is the easiest and least costly way of getting a trusted certificate?

SQL Server Other
{count} votes

3 answers

Sort by: Most helpful
  1. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2022-10-14T21:44:24.92+00:00

    That's indeed the llatest version of the ODBC driver. Microsoft have changed their APIs so that all no default to require a trusted certificate.

    You have three options:

    0 comments No comments

  2. YufeiShao-msft 7,146 Reputation points
    2022-10-17T03:13:53.457+00:00

    Hi @Al C ,

    The error occurs because of a change in the default behavior of the client drivers,

    You do not necessarily need to use the latest driver, the one of the solutions is to use the Microsoft ODBC Driver 17 for SQL Server

    Or you can try to change the value of the Encrypt setting of the application connection string property to No or Optional, add Encrypt = Optional;

    If you're using a DSN, change the encryption setting from Mandatory to Optional.

    Please refer to this article, you can try its solutions:

    "The certificate chain was issued by an authority that is not trusted" error after upgrading SNAC applications


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. Al C 41 Reputation points
    2022-10-20T00:10:48.563+00:00

    Thank you. My apologies for not accepting. I found your suggestions truly helpful as well.

    Al


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.