Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (seongtaejeong at gmail.com)
홈페이지
첨부 파일
 

SignTool - "Error: SignerSign() failed." (-2146869243/0x80096005)

이상하군요, 그동안 잘 되다가 어느 순간 동일한 명령어의 서명 작업이 오류가 발생합니다. 문제가 발생한 것은 2중 서명 작업이었는데요,

signtool.exe의 다중 서명 기능
; https://www.sysnet.pe.kr/2/0/10875

즉, 첫 번째 서명은 잘 되는데,

C:\temp> signtool sign /sm /n TestCert /t http://timestamp.digicert.com setup.exe
Done Adding Additional Store
Successfully signed: setup.exe

두 번째의 sha256 서명에서 실패합니다.

C:\temp> signtool sign /as /sm /n TestCert /fd sha256 /tr http://timestamp.digicert.com setup.exe
Done Adding Additional Store
SignTool Error: An unexpected internal error has occurred.
Error information: "Error: SignerSign() failed." (-2146869243/0x80096005)

문서를 보니까,

Troubleshooting Timestamping Problems
; https://knowledge.digicert.com/solution/troubleshooting-timestamping-problems

RFC3161 compliant Time Stamp Authority (TSA) server
; https://knowledge.digicert.com/general-information/rfc3161-compliant-time-stamp-authority-server

일단 timestamp 서버는 정상 작동 중인 것 같습니다.

C:\temp> curl -i timestamp.digicert.com/timestamp/health/heartbeat
HTTP/1.1 204 No Content
Date: Tue, 10 Jun 2025 12:33:31 GMT

대신 옵션에서 달라진 점이 있긴 한데요,

/tr http://timestamp.digicert.com /td SHA256

제 경우에는 /fd 옵션을 주었는데 /td 옵션이 추가된 것입니다. 다행히 이대로 하면 정상적으로 다중 서명은 되지만,

signtool sign /as /sm /n TestCert /tr http://timestamp.digicert.com /td sha256 setup.exe 

정작 속성창에서 보면, "Digest algorithm"이 sha256이 아닌 sha1로 나옵니다.

sign_80096005_1.png

원래 sha256 알고리즘으로 나왔던 것과는 달라서 왠지 찝찝한데요, 혹시나 싶어 /fd 옵션도 함께 추가했는데,

signtool sign /as /sm /n TestCert /tr http://timestamp.digicert.com /fd sha256 /td sha256 setup.exe 

잘됩니다. ^^ signtool.exe의 옵션 설명에 보면,

/fd         Specifies the file digest algorithm to use for creating file
            signatures. (Default is SHA1)

/td    Used with the /tr or /tseal switch to request a digest algorithm
            used by the RFC 3161 timestamp server.

/fd 옵션은 파일 서명에 사용되는 해시 알고리즘이고, /td 옵션은 RFC 3161 타임스탬프 서버에서 사용하는 해시 알고리즘을 명시하는 옵션입니다. 즉, 그 2개의 옵션이 서로 배타적이지 않은 별개의 기능을 나타낸 것입니다.

정리하면, 아마도 어느 순간 digicert 측의 timestamp 서버에서 받아들이는 해시 알고리즘이 변경되면서 발생한 문제 같습니다.




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







[최초 등록일: ]
[최종 수정일: 6/11/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)
13876정성태1/25/20255489닷넷: 2314. C# - ProcessStartInfo 타입의 Arguments와 ArgumentList파일 다운로드1
13875정성태1/24/20254058스크립트: 69. 파이썬 - multiprocessing 패키지의 spawn 모드로 동작하는 uvicorn의 workers
13874정성태1/24/20255280스크립트: 68. 파이썬 - multiprocessing Pool의 기본 프로세스 시작 모드(spawn, fork)
13873정성태1/23/20253905디버깅 기술: 217. WinDbg - PCI 장치 열거파일 다운로드1
13872정성태1/23/20253524오류 유형: 944. WinDbg - 원격 커널 디버깅이 연결은 되지만 Break (Ctrl + Break) 키를 눌러도 멈추지 않는 현상
13871정성태1/22/20254027Windows: 278. Windows - 윈도우를 다른 모니터 화면으로 이동시키는 단축키 (Window + Shift + 화살표)
13870정성태1/18/20254884개발 환경 구성: 741. WinDbg - 네트워크 커널 디버깅이 가능한 NIC 카드 지원 확대
13869정성태1/18/20254205개발 환경 구성: 740. WinDbg - _NT_SYMBOL_PATH 환경 변수에 설정한 경로로 심벌 파일을 다운로드하지 않는 경우
13868정성태1/17/20253855Windows: 277. Hyper-V - Windows 11 VM의 Enhanced Session 모드로 로그인을 할 수 없는 문제
13867정성태1/17/20255319오류 유형: 943. Hyper-V에 Windows 11 설치 시 "This PC doesn't currently meet Windows 11 system requirements" 오류
13866정성태1/16/20255555개발 환경 구성: 739. Windows 10부터 바뀐 device driver 서명 방법
13865정성태1/15/20255086오류 유형: 942. C# - .NET Framework 4.5.2 이하의 버전에서 HttpWebRequest로 https 호출 시 "System.Net.WebException" 예외 발생
13864정성태1/15/20255113Linux: 114. eBPF를 위해 필요한 SELinux 보안 정책
13863정성태1/14/20254011Linux: 113. Linux - 프로세스를 위한 전용 SELinux 보안 문맥 지정
13862정성태1/13/20254489Linux: 112. Linux - 데몬을 위한 SELinux 보안 정책 설정
13861정성태1/11/20254634Windows: 276. 명령행에서 원격 서비스를 동기/비동기로 시작/중지
13860정성태1/10/20254304디버깅 기술: 216. WinDbg - 2가지 유형의 식 평가 방법(MASM, C++)
13859정성태1/9/20255023디버깅 기술: 215. Windbg - syscall 이후 실행되는 KiSystemCall64 함수 및 SSDT 디버깅
13858정성태1/8/20255094개발 환경 구성: 738. PowerShell - 원격 호출 시 "powershell.exe"가 아닌 "pwsh.exe" 환경으로 명령어를 실행하는 방법
13857정성태1/7/20255312C/C++: 187. Golang - 콘솔 응용 프로그램을 Linux 데몬 서비스를 지원하도록 변경파일 다운로드1
13856정성태1/6/20254296디버깅 기술: 214. Windbg - syscall 단계까지의 Win32 API 호출 (예: Sleep)
13855정성태12/28/20245860오류 유형: 941. Golang - os.StartProcess() 사용 시 오류 정리
13854정성태12/27/20245775C/C++: 186. Golang - 콘솔 응용 프로그램을 NT 서비스를 지원하도록 변경파일 다운로드1
13853정성태12/26/20244727디버깅 기술: 213. Windbg - swapgs 명령어와 (Ring 0 커널 모드의) FS, GS Segment 레지스터
13852정성태12/25/20245796디버깅 기술: 212. Windbg - (Ring 3 사용자 모드의) FS, GS Segment 레지스터파일 다운로드1
13851정성태12/23/20245006디버깅 기술: 211. Windbg - 커널 모드 디버깅 상태에서 사용자 프로그램을 디버깅하는 방법
1  2  3  [4]  5  6  7  8  9  10  11  12  13  14  15  ...