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

비밀번호

댓글 작성자
 




... 61  62  63  64  65  66  67  68  69  70  [71]  72  73  74  75  ...
NoWriterDateCnt.TitleFile(s)
12189정성태3/13/202022303개발 환경 구성: 482. Facebook OAuth 처리 시 상태 정보 전달 방법과 "유효한 OAuth 리디렉션 URI" 설정 규칙
12188정성태3/13/202027823Windows: 169. 부팅 시점에 실행되는 chkdsk 결과를 확인하는 방법
12187정성태3/12/202016897오류 유형: 605. NtpClient was unable to set a manual peer to use as a time source because of duplicate error on '...'.
12186정성태3/12/202018541오류 유형: 604. The SysVol Permissions for one or more GPOs on this domain controller and not in sync with the permissions for the GPOs on the Baseline domain controller.
12185정성태3/11/202019329오류 유형: 603. The browser service was unable to retrieve a list of servers from the browser master...
12184정성태3/11/202021246오류 유형: 602. Automatic certificate enrollment for local system failed (0x800706ba) The RPC server is unavailable. [3]
12183정성태3/11/202018522오류 유형: 601. Warning: DsGetDcName returned information for \\[...], when we were trying to reach [...].
12182정성태3/11/202020195.NET Framework: 901. C# Windows Forms - Vista/7 이후의 Progress Bar 업데이트가 느린 문제파일 다운로드1
12181정성태3/11/202020541기타: 76. 재현 가능한 최소한의 예제 프로젝트란? - 두 번째 예제파일 다운로드1
12180정성태3/10/202017229오류 유형: 600. "Docker Desktop for Windows" - EXPOSE 포트가 LISTENING 되지 않는 문제
12179정성태3/10/202028527개발 환경 구성: 481. docker - PostgreSQL 컨테이너 실행
12178정성태3/10/202021151개발 환경 구성: 480. Linux 운영체제의 docker를 위한 tcp 바인딩 추가 [1]
12177정성태3/9/202020347개발 환경 구성: 479. docker - MySQL 컨테이너 실행
12176정성태3/9/202019865개발 환경 구성: 478. 파일의 (sha256 등의) 해시 값(checksum) 확인하는 방법
12175정성태3/8/202019889개발 환경 구성: 477. "Docker Desktop for Windows"의 "Linux Container" 모드를 위한 tcp 바인딩 추가
12174정성태3/7/202018885개발 환경 구성: 476. DockerDesktopVM의 파일 시스템 접근 [3]
12173정성태3/7/202020677개발 환경 구성: 475. docker - SQL Server 2019 컨테이너 실행 [1]
12172정성태3/7/202024905개발 환경 구성: 474. docker - container에서 root 권한 명령어 실행(sudo)
12171정성태3/6/202019840VS.NET IDE: 143. Visual Studio - ASP.NET Core Web Application의 "Enable Docker Support" 옵션으로 달라지는 점 [1]
12170정성태3/6/202017532오류 유형: 599. "Docker Desktop is switching..." 메시지와 DockerDesktopVM CPU 소비 현상
12169정성태3/5/202020340개발 환경 구성: 473. Windows nanoserver에 대한 docker pull의 태그 사용 [1]
12168정성태3/5/202021867개발 환경 구성: 472. 윈도우 환경에서의 dockerd.exe("Docker Engine" 서비스)가 Linux의 것과 다른 점
12167정성태3/5/202019795개발 환경 구성: 471. C# - 닷넷 응용 프로그램에서 DB2 Express-C 데이터베이스 사용 (3) - ibmcom/db2express-c 컨테이너 사용
12166정성태3/4/202020862개발 환경 구성: 470. Windows Server 컨테이너 - DockerMsftProvider 모듈을 이용한 docker 설치
12165정성태3/2/202019238.NET Framework: 900. 실행 시에 메서드 가로채기 - CLR Injection: Runtime Method Replacer 개선 - 네 번째 이야기(Monitor.Enter 후킹)파일 다운로드1
12164정성태2/29/202020420오류 유형: 598. Surface Pro 6 - Windows Hello Face Software Device가 인식이 안 되는 문제
... 61  62  63  64  65  66  67  68  69  70  [71]  72  73  74  75  ...