M
M
mr_blond972017-07-24 17:18:53
OpenSSL
mr_blond97, 2017-07-24 17:18:53

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.

Installed the package
System.Security.Cryptography.OpenSsl
But after installing the package, the same error is issued. I can't find the "nativ" System.Security.Cryptography.Native.OpenSsl package, there is only the System.Security.Cryptography.OpenSsl package
How to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mr_blond97, 2017-07-25
@mr_blond97

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 question

Ask a Question

731 491 924 answers to any question