Microsoft MVP성태의 닷넷 이야기
오류 유형: 981. dotnet 실행 시 No usable version of the libssl was found [링크 복사], [링크+제목 복사],
조회: 256
글쓴 사람
정성태 (seongtaejeong at gmail.com)
홈페이지
첨부 파일
 

dotnet 실행 시 No usable version of the libssl was found

아마도 환경적인 요인에서 오는 것 같은데요, .NET 8 런타임이 설치된 Ubuntu 24.04에서 .NET Core 2.0으로 만들어진 웹 애플리케이션을 실행 시 이런 오류가 발생했습니다.

$ dotnet /app/corecorelin/CoreCoreLin.dll
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
      User profile is available. Using '/home/kevin/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest.
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58]
      Creating key {3f084640-c099-4da3-8d70-077af8fb5c33} with creation date 2025-08-19 06:50:46Z, activation date 2025-08-19 06:50:46Z, and expiration date 2025-11-17 06:50:46Z.
No usable version of the libssl was found
Aborted (core dumped)

검색해 보면,

No usable version of libssl was found #4749
; https://github.com/dotnet/core/issues/4749

"dotnet new" 명령어 실행 단계에서도 저 오류가 발생했다는 건데, 답변 중 하나를 보면 libssl.so.47.0.6을 /usr/lib/libssl.so.1.0.0로 링크해 해결했다고 합니다. 제 경우에는 libssl3.so 파일이 있어서,

$ ldconfig -p | grep libssl
        libssl3.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libssl3.so
        libssl.so.3 (libc6,x86-64) => /lib/x86_64-linux-gnu/libssl.so.3

$ openssl version
OpenSSL 3.0.16 11 Feb 2025 (Library: OpenSSL 3.0.16 11 Feb 2025)

링크를 걸었으나,

$ sudo ln -s /lib/x86_64-linux-gnu/libssl.so.3 /usr/lib/libssl.so.1.0.0

$ dotnet /app/corecorelin/CoreCoreLin.dll
...[생략]...
Cannot get required symbol CRYPTO_add_lock from libssl
Aborted (core dumped)

$ sudo rm /usr/lib/libssl.so.1.0.0

(다른 오류로 바뀌긴 했지만) 실행이 되지 않았습니다. 다른 답변에 보면, 1.1.1 버전의 libssl을 설치하면 된다고 해서, 1.1.1f 버전도 설치해 보았는데,

$ wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.24_amd64.deb
$ sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.24_amd64.deb

$ ldconfig -p | grep libssl
        libssl3.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libssl3.so
        libssl.so.3 (libc6,x86-64) => /lib/x86_64-linux-gnu/libssl.so.3
        libssl.so.1.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libssl.so.1.1

$ sudo ln -s /lib/x86_64-linux-gnu/libssl.so.1.1 /usr/lib/libssl.so.1.0.0

$ dotnet /app/corecorelin/CoreCoreLin.dll
...[생략]...
Cannot get required symbol CRYPTO_add_lock from libssl
Aborted (core dumped)

$ sudo rm /usr/lib/libssl.so.1.0.0

마찬가지입니다. 혹시나 싶어 직접 빌드해 설치하는 것도 시도했지만,

wget https://www.openssl.org/source/openssl-1.1.1c.tar.gz
tar -xzvf openssl-1.1.1c.tar.gz
cd openssl-1.1.1c
./config
make
sudo make install  // (it puts it into /usr/local/lib so it doesn't mess with the rest of your system)

LD_LIBRARY_PATH="/usr/local/lib" dotnet /app/corecorelin/CoreCoreLin.dll

결국은 안 되었습니다.




.NET 8.0에서 호스팅해서 그럴까 싶어 .NET 2.0 SDK를 설치해 봤는데요,

.NET 다운로드
; https://dotnet.microsoft.com/download/dotnet

.NET Core 2.0 SDK
; https://builds.dotnet.microsoft.com/dotnet/Sdk/2.1.200/dotnet-sdk-2.1.200-linux-x64.tar.gz

wget https://builds.dotnet.microsoft.com/dotnet/Sdk/2.1.200/dotnet-sdk-2.1.200-linux-x64.tar.gz
mkdir -p $HOME/dotnet
tar xf dotnet-sdk-2.1.200-linux-x64.tar.gz -C $HOME/dotnet

"No usable version of the libssl was found" 오류는 여전히 발생했습니다. 게다가 이번에는 dotnet 실행 모듈 자체도 ICU 패키지와의 호환성에 문제가 있는지 실행이 안 됩니다.

// 환경 변수를 지정했는데도 icu 오류 발생

$ DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 ~/dotnet/dotnet --version
FailFast: Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.

   at System.Environment.FailFast(System.String)
   at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
   at System.Globalization.GlobalizationMode..cctor()
   at System.Globalization.CultureData.CreateCultureWithInvariantData()
   at System.Globalization.CultureData.get_Invariant()
   at System.Globalization.CultureData.GetCultureData(System.String, Boolean)
   at System.Globalization.CultureInfo.InitializeFromName(System.String, Boolean)
   at System.Globalization.CultureInfo.Init()
   at System.Globalization.CultureInfo..cctor()
   at System.StringComparer..cctor()
   at System.AppDomainSetup.SetCompatibilitySwitches(System.Collections.Generic.IEnumerable`1<System.String>)
   at System.AppDomain.PrepareDataForSetup(System.String, System.AppDomainSetup, System.Security.Policy.Evidence, System.Security.Policy.Evidence, IntPtr, System.String, System.String[], System.String[])
Aborted (core dumped)




결국은 .NET 2.0으로 만들어진 웹 애플리케이션을 실행할 수 없었습니다. 대신, netcoreapp3.0 이상의 웹 애플리케이션은 정상적으로, 위의 환경에서 어떠한 변화도 없이 잘 실행됐습니다. 그런 의미에서 아마도 .NET 2.0 빌드 결과물에 포함된 특정 모듈이 libssl과 호환되지 않는 듯한데... 오늘은 여기까지만 하고 끝내겠습니다. ^^ 향후로 .NET Core 2.x 앱을 사용할 일이 없을 것이므로 더 이상의 분석은 의미도 없을 것 같기에. ^^

단지 한 가지 의미를 찾는다면, .NET 버전이 올라가면서 기존 앱들이 새로운 운영체제 환경에서는 실행되지 않을 수도 있다는 점을 인식한 정도가 되겠습니다. ^^




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 8/21/2025]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




1  2  3  4  5  6  7  8  9  10  11  12  13  14  [15]  ...
NoWriterDateCnt.TitleFile(s)
13654정성태6/24/202410330오류 유형: 911. shutdown - The entered computer name is not valid or remote shutdown is not supported on the target computer.
13653정성태6/22/202410535닷넷: 2268. C# 코드에서 MAKEINTREOURCE 매크로 처리
13652정성태6/21/202412793닷넷: 2267. C# - Linux 환경에서 (Reflection 없이) DLL AssemblyFileVersion 구하는 방법파일 다운로드2
13651정성태6/19/202412111닷넷: 2266. C# - (Reflection 없이) DLL AssemblyFileVersion 구하는 방법파일 다운로드1
13650정성태6/18/202412382개발 환경 구성: 713. "WSL --debug-shell"로 살펴보는 WSL 2 VM의 리눅스 환경
13649정성태6/18/202410634오류 유형: 910. windbg - !py 확장 명령어 실행 시 "failed to find python interpreter" (2)
13648정성태6/17/202412135오류 유형: 909. C# - DynamicMethod 사용 시 System.TypeAccessException
13647정성태6/16/202413575개발 환경 구성: 712. Windows - WSL 2의 네트워크 통신 방법 - 세 번째 이야기 (같은 IP를 공유하는 WSL 2 인스턴스) [1]
13646정성태6/14/202411244오류 유형: 908. Process Explorer - "Error configuring dump resources: The system cannot find the file specified."
13645정성태6/13/202410769개발 환경 구성: 711. Visual Studio로 개발 시 기본 등록하는 dev tag 이미지로 Docker Desktop k8s에서 실행하는 방법
13644정성태6/12/202412405닷넷: 2265. C# - System.Text.Json의 기본적인 (한글 등에서의) escape 처리 [1]
13643정성태6/12/202410945오류 유형: 907. MySqlConnector 사용 시 System.IO.FileLoadException 오류
13642정성태6/11/202410410스크립트: 65. 파이썬 - asgi 버전(2, 3)에 따라 달라지는 uvicorn 호스팅
13641정성태6/11/202411734Linux: 71. Ubuntu 20.04를 22.04로 업데이트
13640정성태6/10/202412657Phone: 21. C# MAUI - Android 환경에서의 파일 다운로드(DownloadManager)
13639정성태6/8/202411812오류 유형: 906. C# MAUI - Android Emulator에서 "Waiting For Debugger"로 무한 대기
13638정성태6/8/202412050오류 유형: 905. C# MAUI - 추가한 layout XML 파일이 Resource.Layout 멤버로 나오지 않는 문제
13637정성태6/6/202410530Phone: 20. C# MAUI - 유튜브 동영상을 MediaElement로 재생하는 방법
13636정성태5/30/202410176닷넷: 2264. C# - 형식 인자로 인터페이스를 갖는 제네릭 타입으로의 형변환파일 다운로드1
13635정성태5/29/202412479Phone: 19. C# MAUI - 안드로이드 "Share" 대상으로 등록하는 방법
13634정성태5/24/202413302Phone: 18. C# MAUI - 안드로이드 플랫폼에서의 Activity 제어 [1]
13633정성태5/22/202412519스크립트: 64. 파이썬 - ASGI를 만족하는 최소한의 구현 코드
13632정성태5/20/202410657Phone: 17. C# MAUI - Android 내에 Web 서비스 호스팅
13631정성태5/19/202412069Phone: 16. C# MAUI - /Download 등의 공용 디렉터리에 접근하는 방법 [1]
13630정성태5/19/202410682닷넷: 2263. C# - Thread가 Task보다 더 빠르다는 어떤 예제(?)
13629정성태5/18/202411364개발 환경 구성: 710. Android - adb.exe를 이용한 파일 전송
1  2  3  4  5  6  7  8  9  10  11  12  13  14  [15]  ...