Microsoft MVP성태의 닷넷 이야기
오류 유형: 981. dotnet 실행 시 No usable version of the libssl was found [링크 복사], [링크+제목 복사],
조회: 261
글쓴 사람
정성태 (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)
11969정성태7/2/201922980Math: 63. C# - 3층 구조의 신경망파일 다운로드1
11968정성태7/1/201929791오류 유형: 551. Visual Studio Code에서 Remote-SSH 연결 시 "Opening Remote..." 단계에서 진행되지 않는 문제 [1]
11967정성태7/1/201923938개발 환경 구성: 446. Synology NAS를 Windows 10에서 iSCSI로 연결하는 방법
11966정성태6/30/201922479Math: 62. 활성화 함수에 따른 뉴런의 출력을 그리드 맵으로 시각화파일 다운로드1
11965정성태6/30/201922957.NET Framework: 846. C# - 2차원 배열을 1차원 배열로 나열하는 확장 메서드파일 다운로드1
11964정성태6/30/201923534Linux: 20. C# - Linux에서의 Named Pipe를 이용한 통신
11963정성태6/29/201923076Linux: 19. C# - .NET Core Unix Domain Socket 사용 예제
11962정성태6/27/201920715Math: 61. C# - 로지스틱 회귀를 이용한 선형분리 불가능 문제의 분류파일 다운로드1
11961정성태6/27/201921901Graphics: 37. C# - PLplot - 출력 모음(Family File Output)
11960정성태6/27/201922939Graphics: 36. C# - PLplot의 16색 이상을 표현하는 방법과 subpage를 이용한 그리드 맵 표현
11959정성태6/27/201924091Graphics: 35. matplotlib와 PLplot의 한글 처리
11958정성태6/25/201928431Linux: 18. C# - .NET Core Console로 리눅스 daemon 프로그램 만드는 방법 [6]
11957정성태6/24/201925151Windows: 160. WMI 쿼리를 명령행에서 간단하게 수행하는 wmic.exe [2]
11956정성태6/24/201925218Linux: 17. CentOS 7에서 .NET Core Web App 실행 환경 구성 [1]
11955정성태6/20/201923298Math: 60. C# - 로지스틱 회귀를 이용한 분류파일 다운로드1
11954정성태6/20/201920813오류 유형: 550. scp - sudo: no tty present and no askpass program specified
11953정성태6/20/201918501오류 유형: 549. The library 'libhostpolicy.so' required to execute the application was not found in '...'
11952정성태6/20/201919928Linux: 16. 우분투, Centos의 Netbios 호스트 이름 풀이 방법
11951정성태6/20/201923147오류 유형: 548. scp 연결 시 "Permission denied" 오류 및 "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!" 경고
11950정성태6/18/201924643.NET Framework: 845. C# - 윈도우 작업 관리자와 리소스 모니터의 메모리 값을 구하는 방법
11949정성태6/18/201919805오류 유형: 547. CoreCLR Profiler 예제 프로젝트 빌드 시 컴파일 오류 유형
11948정성태6/17/201920971Linux: 15. 리눅스 환경의 Visual Studio Code에서 TFS 서버 연동
11947정성태6/17/201924097Linux: 14. 리눅스 환경에서 TFS 서버 연동
11946정성태6/17/201925266개발 환경 구성: 445. C# - MathNet으로 정규 분포를 따르는 데이터를 생성, PLplot으로 Histogram 표현파일 다운로드1
11945정성태6/17/201922441Linux: 13. node.js에서 syslog로 출력하는 방법
11944정성태6/16/201928687Linux: 12. Ubuntu 16.04/18.04에서 node.js 최신 버전 설치 방법
... 76  77  78  79  80  81  [82]  83  84  85  86  87  88  89  90  ...