Microsoft MVP성태의 닷넷 이야기
오류 유형: 981. dotnet 실행 시 No usable version of the libssl was found [링크 복사], [링크+제목 복사],
조회: 289
글쓴 사람
정성태 (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

비밀번호

댓글 작성자
 




... 16  [17]  18  19  20  21  22  23  24  25  26  27  28  29  30  ...
NoWriterDateCnt.TitleFile(s)
13604정성태4/22/202410696오류 유형: 901. Visual Studio - Unable to set the next statement. Set next statement cannot be used in '[Exception]' call stack frames.
13603정성태4/21/202413691닷넷: 2245. C# - IronPython을 이용한 파이썬 소스코드 연동파일 다운로드1
13602정성태4/20/202411893닷넷: 2244. C# - PCM 오디오 데이터를 연속(Streaming) 재생 (Windows Multimedia)파일 다운로드1
13601정성태4/19/202412313닷넷: 2243. C# - PCM 사운드 재생(NAudio)파일 다운로드1
13600정성태4/18/202413742닷넷: 2242. C# - 관리 스레드와 비관리 스레드
13599정성태4/17/202413434닷넷: 2241. C# - WAV 파일의 PCM 사운드 재생(Windows Multimedia)파일 다운로드1
13598정성태4/16/202413620닷넷: 2240. C# - WAV 파일 포맷 + LIST 헤더파일 다운로드2
13597정성태4/15/202411166닷넷: 2239. C# - WAV 파일의 PCM 데이터 생성 및 출력파일 다운로드1
13596정성태4/14/202412154닷넷: 2238. C# - WAV 기본 파일 포맷파일 다운로드1
13595정성태4/13/202412771닷넷: 2237. C# - Audio 장치 열기 (Windows Multimedia, NAudio)파일 다운로드1
13594정성태4/12/202412466닷넷: 2236. C# - Audio 장치 열람 (Windows Multimedia, NAudio)파일 다운로드1
13593정성태4/8/202410827닷넷: 2235. MSBuild - AccelerateBuildsInVisualStudio 옵션
13592정성태4/2/202413972C/C++: 165. CLion으로 만든 Rust Win32 DLL을 C#과 연동 [1]
13591정성태4/2/202412383닷넷: 2234. C# - WPF 응용 프로그램에 Blazor App 통합파일 다운로드1
13590정성태3/31/202412471Linux: 70. Python - uwsgi 응용 프로그램이 k8s 환경에서 OOM 발생하는 문제
13589정성태3/29/202411518닷넷: 2233. C# - 프로세스 CPU 사용량을 나타내는 성능 카운터와 Win32 API파일 다운로드1
13588정성태3/28/202413763닷넷: 2232. C# - Unity + 닷넷 App(WinForms/WPF) 간의 Named Pipe 통신 [2]파일 다운로드1
13587정성태3/27/202411613오류 유형: 900. Windows Update 오류 - 8024402C, 80070643
13586정성태3/27/202416252Windows: 263. Windows - 복구 파티션(Recovery Partition) 용량을 늘리는 방법
13585정성태3/26/202412924Windows: 262. PerformanceCounter의 InstanceName에 pid를 추가한 "Process V2"
13584정성태3/26/202415581개발 환경 구성: 708. Unity3D - C# Windows Forms / WPF Application에 통합하는 방법 [9]파일 다운로드1
13583정성태3/25/202411632Windows: 261. CPU Utilization이 100% 넘는 경우를 성능 카운터로 확인하는 방법
13582정성태3/19/202414533Windows: 260. CPU 사용률을 나타내는 2가지 수치 - 사용량(Usage)과 활용률(Utilization)파일 다운로드1
13581정성태3/18/202412998개발 환경 구성: 707. 빌드한 Unity3D 프로그램을 C++ Windows Application에 통합하는 방법
13580정성태3/15/202411537닷넷: 2231. C# - ReceiveTimeout, SendTimeout이 적용되지 않는 Socket await 비동기 호출파일 다운로드1
13579정성태3/13/202413201오류 유형: 899. HTTP Error 500.32 - ANCM Failed to Load dll
... 16  [17]  18  19  20  21  22  23  24  25  26  27  28  29  30  ...