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

비밀번호

댓글 작성자
 




... 76  77  78  79  80  81  82  83  84  85  86  [87]  88  89  90  ...
NoWriterDateCnt.TitleFile(s)
11844정성태3/14/201926802개발 환경 구성: 434. Visual Studio 2019 - 리눅스 프로젝트를 이용한 공유/실행(so/out) 프로그램 개발 환경 설정 [1]파일 다운로드1
11843정성태3/14/201921330기타: 75. MSDN 웹 사이트를 기본으로 영문 페이지로 열고 싶다면?
11842정성태3/13/201918323개발 환경 구성: 433. 마이크로소프트의 CoreCLR 프로파일러 예제를 Visual Studio CMake로 빌드하는 방법 [1]파일 다운로드1
11841정성태3/13/201919005VS.NET IDE: 132. Visual Studio 2019 - CMake의 컴파일러를 기본 g++에서 clang++로 변경
11840정성태3/13/201921694오류 유형: 526. 윈도우 10 Ubuntu App 환경에서는 USB 외장 하드 접근 불가
11839정성태3/12/201926415디버깅 기술: 124. .NET Core 웹 앱을 호스팅하는 Azure App Services의 프로세스 메모리 덤프 및 windbg 분석 개요 [3]
11838정성태3/7/201930057.NET Framework: 811. (번역글) .NET Internals Cookbook Part 1 - Exceptions, filters and corrupted processes [1]파일 다운로드1
11837정성태3/6/201943060기타: 74. 도서: 시작하세요! C# 7.3 프로그래밍 [10]
11836정성태3/5/201927054오류 유형: 525. Visual Studio 2019 Preview 4/RC - C# 8.0 Missing compiler required member 'System.Range..ctor' [1]
11835정성태3/5/201924528.NET Framework: 810. C# 8.0의 Index/Range 연산자를 .NET Framework에서 사용하는 방법 및 비동기 스트림의 컴파일 방법 [3]파일 다운로드1
11834정성태3/4/201923178개발 환경 구성: 432. Visual Studio 없이 최신 C# (8.0) 컴파일러를 사용하는 방법
11833정성태3/4/201924889개발 환경 구성: 431. Visual Studio 2019 - CMake를 이용한 공유/실행(so/out) 리눅스 프로젝트 설정파일 다운로드1
11832정성태3/4/201918822오류 유형: 524. Visual Studio CMake - rsync: connection unexpectedly closed
11831정성태3/4/201920526오류 유형: 523. Visual Studio 2019 - 새 창으로 뜬 윈도우를 닫을 때 비정상 종료
11830정성태2/26/201919255오류 유형: 522. 이벤트 로그 - Error opening event log file State. Log will not be processed. Return code from OpenEventLog is 87.
11829정성태2/26/201920261개발 환경 구성: 430. 마이크로소프트의 CoreCLR 프로파일러 예제 빌드 방법 - 리눅스 환경 [1]
11828정성태2/26/201929444개발 환경 구성: 429. Component Services 관리자의 RuntimeBroker 설정이 2개 있는 경우 [8]
11827정성태2/26/201921098오류 유형: 521. Visual Studio - Could not start the 'rsync' command on the remote host, please install it using your system package manager.
11826정성태2/26/201921948오류 유형: 520. 우분투에 .NET Core SDK 설치 시 패키지 의존성 오류
11825정성태2/25/201928161개발 환경 구성: 428. Visual Studio 2019 - CMake를 이용한 리눅스 빌드 환경 설정 [1]
11824정성태2/25/201922382오류 유형: 519. The SNMP Service encountered an error while accessing the registry key SYSTEM\CurrentControlSet\Services\SNMP\Parameters\TrapConfiguration. [1]
11823정성태2/21/201922781오류 유형: 518. IIS 관리 콘솔이 뜨지 않는 문제
11822정성태2/20/201922969오류 유형: 517. docker에 설치한 MongoDB 서버로 연결이 안 되는 경우
11821정성태2/20/201923757오류 유형: 516. Visual Studio 2019 - This extension uses deprecated APIs and is at risk of not functioning in a future VS update. [1]
11820정성태2/20/201926821오류 유형: 515. 윈도우 10 1809 업데이트 후 "User Profiles Service" 1534 경고 발생
11819정성태2/20/201925745Windows: 158. 컴퓨터와 사용자의 SID(security identifier) 확인 방법
... 76  77  78  79  80  81  82  83  84  85  86  [87]  88  89  90  ...