Skip to content
Advertisement

`dotnet new command` in openSuse causes `No usable version of the libssl was found` error

I’m trying to develop .NET Core in openSuse. I did install the SDK and everything in tutorials. Now, when I try to run dotnet new console command, I get this error:

No usable version of the libssl was found

Aborted (core dumped)

I found this answer: (.NET Core 2.1 SDK Linux x64 No usable version of the libssl was found), but didn’t get what should I do to solve problem. They seems are deep-linuxer (which I’m not, I’m just trying to learn linux). Have any idea how to run the command?

UPDATE: System info:

openSUSE Leap 15.0

Kernel Version 4.12.14-lp150.12.22-default

OS Type:64-bit

Advertisement

Answer

Can you install the libopenssl1_0_0 packages? .NET Core should pick it up and use it.

A slightly longer explanation for anyone who is curious:

OpenSSL is one of the most common cryptographic libraries used on Linux. It has multiple versions. Version 1.0 is kind of old, but heavily used. 1.1 is the newer version that was (relatively) recently released. 1.0 and 1.1 are not compatible. An application that expects 1.0 can not build against 1.1, nor run against it.

.NET Core 2.1, and all earlier versions only support OpenSSL 1.0.

Many Linux distributions are starting to make OpenSSL 1.1 the new default. But most of them still have a package for 1.0. So you just need to find and install that. On Fedora it’s compat-openssl10. For openSuSE, it’s libopenssl1_0_0. Then .NET Core will find it, pick it up and use it automatically.

Edit: As of March 2019, this shouldn’t be required. We have updated .NET Core 2.1 and later to pick up and work with either OpenSSL 1.1 or 1.0 (whatever is available). So this problem should no longer happen with recent releases of .NET Core.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement