title: Ubuntu - Microsoft.Data.SqlClient.SqlException (0x80131904): error occurred during the pre-login handshake
body: <p>I'm trying to stand up a .NET application locally on Ubuntu 22.04 and running into the following issue. It's working fine on Windows and Mac but not linux. Any ideas?</p>
  <pre><code>Microsoft.Data.Tools.Diagnostics.Tracer Warning: 0 : 2022-08-09T11:22:51 : Retry occurred: session: 00000000-0000-0000-0000-000000000000; attempt - 7; delay - 00:01:00; exception - &quot;Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught)
   ---&gt; System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
   ---&gt; System.TypeInitializationException: The type initializer for 'SslMethods' threw an exception.
   ---&gt; System.TypeInitializationException: The type initializer for 'Ssl' threw an exception.
   ---&gt; System.TypeInitializationException: The type initializer for 'SslInitializer' threw an exception.
   ---&gt; Interop+Crypto+OpenSslCryptographicException: error:0E076071:configuration file routines:MODULE_RUN:unknown module name
     at Interop.SslInitializer..cctor()
     --- End of inner exception stack trace ---
     at Interop.Ssl..cctor()
     --- End of inner exception stack trace ---
     at Interop.Ssl.SslV2_3Method()
     at Interop.Ssl.SslMethods..cctor()
     --- End of inner exception stack trace ---
     at Interop.OpenSsl.AllocateSslContext(SslProtocols protocols, SafeX509Handle certHandle, SafeEvpPKeyHandle certKeyHandle, EncryptionPolicy policy, SslAuthenticationOptions sslAuthenticationOptions)
     at System.Net.Security.SafeDeleteSslContext..ctor(SafeFreeSslCredentials credential, SslAuthenticationOptions sslAuthenticationOptions)
     at System.Net.Security.SslStreamPal.HandshakeInternal(SafeFreeCredentials credential, SafeDeleteContext&amp; context, ArraySegment`1 inputBuffer, Byte[]&amp; outputBuffer, SslAuthenticationOptions sslAuthenticationOptions)
  </code></pre>