Answer the question
In order to leave comments, you need to log in
How to solve problem with adding nuget package to .net core on os x?
ASP.NET Core project on os x connects to MSSQL database.
Exception:
System.Data.SqlClient.SqlException:
A connection was successfully established with the server,
but then an error occurred during the pre-login handshake.
(provider: SSL Provider, error: 31 - Encryption(ssl/tls) handshake failed) --->
System.TypeInitializationException:
The type initializer for 'Crypto' threw an exception. --->
System.TypeInitializationException:
The type initializer for 'CryptoInitializer' threw an exception. --->
System.DllNotFoundException:
Unable to load DLL 'System.Security.Cryptography.Native.OpenSsl':
The specified module could not be found.
System.Security.Cryptography.OpenSsl
Answer the question
In order to leave comments, you need to log in
The required System.Security.Cryptography.OpenSsl package has been installed.
It was necessary to separately install openssl as described in the tutorial: https://www.microsoft.com/net/core#macos
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question