Skip to main content

Notifications

Microsoft Dynamics CRM forum
Suggested answer

[DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error during CRM 2016 install

Posted on by 10

I'm at the last step before the CRM install starts, but I'm getting this error:  [DBNETLIB][ConnectionOpen (SECDoClientHandshake().]SSL Security Error. I verified that the user has admin permissions to the database and that TLS 1.0 is enabled on both my front end server and database but neither has worked.

  • Suggested answer
    cbk7944 Profile Picture
    cbk7944 10 on at
    RE: [DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error during CRM 2016 install

    We figured out what our issue was. There was a group policy on the server that was disabling TLS 1.0 so we could never get it enabled. Once we fixed that the connection worked. Thanks for your assistance.

  • cbk7944 Profile Picture
    cbk7944 10 on at
    RE: [DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error during CRM 2016 install

    On our server "Force protocol encryption" is unchecked and the Enabled protocols by order box is empty. I've been using the Test.udl method to test the connection and I get the same error as the CRM installer.

  • Suggested answer
    RE: [DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error during CRM 2016 install

    These packets do not list the hello message or the list of cipher suites along with the protocols (TLS/SSL). Let's take a step back and check what is the configuration for SQL Server Client Network utility on both SQL and CRM boxes as ::

    C:\Windows\SysWOW64\cliconfg.exe

    pastedimage1586469884537v1.png

    For 32 bits systems, you may simply search for cliconfg.exe withing the Windows start menu.

    What happens if you create a blank text file on CRM server and rename it as Test.udl and do the test connection using these options , does it connect successfully with SQL?

    pastedimage1586472363100v1.png

    https://docs.microsoft.com/en-us/sql/connect/oledb/help-topics/data-link-pages?view=sql-server-ver15

    Thanks,

    Saurabh

  • cbk7944 Profile Picture
    cbk7944 10 on at
    RE: [DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error during CRM 2016 install

    I filtered by the IP address of the DB server and I get these packets which may be relevant.

    1. Pre-login Message

    pastedimage1586463195582v1.png

    2. Response from DB server

    pastedimage1586463232354v2.png

  • RE: [DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error during CRM 2016 install

    You may use these example filters ::

    ip.addr ::

    pastedimage1586461469014v1.png

    SSL ::

    pastedimage1586461919903v2.png

    SSL/TLS in action with WireShark ::

    https://www.youtube.com/watch?v=u4ht-E-Kihk

  • cbk7944 Profile Picture
    cbk7944 10 on at
    RE: [DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error during CRM 2016 install

    Can you give me some examples of filters I can use to capture this information using Wireshark or help me interpret the results? I tried "tcp port 1433" and then ran a connection test. I did get a result but I didn't see anything related to SSL or why it failed.

  • Suggested answer
    RE: [DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error during CRM 2016 install

    Hey Chris,

    I don't think we would require to disable TLS 1.2 however, we can give it a try.

    During the TLS/SSL handshake, basically the client reaches out to the sever with a hello kind of message including the available cipher suites & TLS/SSL versions, the server then chooses one of them (Most probably, the most secure channel available).

    In case, thing still doesn't work out here, we should consider capturing network packet traces to understand what sort of disagreements we have with the SQL server here over the application layer.

  • cbk7944 Profile Picture
    cbk7944 10 on at
    RE: [DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error during CRM 2016 install

    Saurabh,

    Does TLS 1.2 need to be temporarily disabled on client/server during install?

  • Suggested answer
    RE: [DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error during CRM 2016 install

    Hey Chris,

    Thanks for reaching back.

    There is another possibility that you have SchUseStrongCrypto enbled for .NET versions which forces apps to use strong cryptography.

    HKEY_LOCAL_MACHINE\SOFTWARE\[Wow6432Node\]Microsoft\.NETFramework\<VERSION>: SchUseStrongCrypto

    HKEY_LOCAL_MACHINE\SOFTWARE\[Wow6432Node\]Microsoft\.NETFramework\<VERSION>: SystemDefaultTlsVersions

    docs.microsoft.com/.../tls

    Also, what if the client (CRM server is client in this case) is trying to do the communication with the server (SQL) on some other secure channel protocols and the server (SQL server) doesn't have those cipher suites enabled and the SSL/TLS handshake fails.

    The only way to identify if that's the case would be through running a packet sniffer like WireShark or NetMon. Or, the simplest way to avoid that would be to enable the older secure channel protocols like SSL 3.0, SSL 2.0 on each of these participating servers.

    This third party tool can be used to check such configurations in one shot.

    www.nartac.com/.../

    I would also request you to check if the SQL server version being used over here can support these old protocols (They should, generally we see the otherwise scenario where newer protocols require some service packs).

    If the above actions doesn't help, you may raise a support request with Microsoft so that this can be looked into from both SQL and CRM standpoint.

    Thanks,
    Saurabh

  • cbk7944 Profile Picture
    cbk7944 10 on at
    RE: [DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error during CRM 2016 install

    Saurabh,

    I verified the following settings on my servers and the I'm still seeing the same error on the install. I have also restarted the servers. Can you think of any other settings to check? Thanks!

    -Chris

    SQL Native Client on CRM server:

    pastedimage1586186953084v5.png

    DB Server config:

    pastedimage1586186708656v1.png

    TLS Client setting on CRM/DB Server

    pastedimage1586186725179v2.png

    TLS Server setting on CRM/DB server:

    pastedimage1586186769692v3.png

    Cryptography setting on DB server:

    pastedimage1586186797452v4.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,435 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,317 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans