반응형

잘되던 전자서명이 안됨.

signtool.exe returned error 0x800700C1 라는 에러 메세지.

잘되는 바이너리는 잘되고 안되는 바이너리는 안되니

signtool의 문제는 아니였음.

( singtool.exe 를 32bit, 64bit 맞게 사용해야됨 )


구글링해도 별로 자료는 안나오고

msdn글 읽다가 

https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/158b5381-f257-4076-83ca-db71cd8a323b/why-signtool-return-error-0x800700c1?forum=wdk


이 사이트로 가니

https://martink.net/2013/01/26/signtool-exe-returned-error-0x800700c1/



To sign our binaries with Authenticode I am using Microsoft’s signtool. Unfortunatelly, it is not really descriptive in some error codes it returns.

이 에러코드는 별로 자세한 내용을 알려주진 않는다...


라는 내용이 있고 또 거기서 링크를 타서 아래 방법으로 해결함.




에러코드가 광범위한 에러를 포함하고 있어 각자 해결방법이 다 다를 수도 있는데

내 경우는 winrar로 sfx바이너리를 만들었는데 lock을걸고 unlock을 하는 과정에서

바이너리의 서명쪽이 깨지거나 하는 모양.. 정확히는 모르지만


아래 사이트를 참고해서 누군가 만들어놓은 delcert.exe로 서명부분을 제거(strip) 하고

ex> delcert.exe myfile.exe

delcert.zip

(출처 : https://forum.xda-developers.com/showthread.php?p=2508061#post2508061)


다시 서명하니 잘 동작함. 





반응형

+ Recent posts