# Sign executable for windows

**URL:** <https://forums.unrealengine.com/t/sign-executable-for-windows/615720>\
**Category:** Platform & Builds\
**Tags:** Shipping, unreal-engine, UE4, question\
**Created:** [July 27, 2022, 6:20pm UTC](https://forums.unrealengine.com/t/sign-executable-for-windows/615720 "2022-07-27T18:20:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![si.graf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@si.graf](https://forums.unrealengine.com/u/si.graf)\
**Post date:** [July 27, 2022, 6:20pm UTC](https://forums.unrealengine.com/t/sign-executable-for-windows/615720/1 "2022-07-27T18:20:18Z")

</div>

Hi guys

I’m packaging a game for release and I just can’t get it signed so that it passes the Microsoft SmartScreen (“Running this app might put your PC at risk”).  
For signing I bought an official code signing certificate. I’m using Unreal Engine 4.26 and packaging it as 64-bit shipping build for Windows.  
When I try to sign the resulting executable “myGame.exe” it always throws an error.

I use the command:  
“C:\Program Files (x86)\Windows Kits\10\App Certification Kit\signtool.exe” sign /tr [http://timestamp.digicert.com](http://timestamp.digicert.com) /td sha256 /fd sha256 /a /f mycertificate.pfx /p MY\_CERT\_PASSWORD “myGame.exe”.

The error message is:  
SignTool Error: SignedCode::Sign returned error: 0x800700C1

After some research I found out that the executable in the root folder is a bootstrap-exe that does some sanity checks and calls a second executable in “root\myGame\Binaries\Win64\myGame-Win64-Shipping.exe”  
Funny enough, this executable can be signed. This is not really useful though, since running the bootstrap-executable still is not recognized from Microsoft Smart Screen and shipping the signed but non-safe executable is not a good idea either.

We’re due to ship on Friday, and any help is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Astrotronic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astrotronic/32/1194566_2.png) [@Astrotronic](https://forums.unrealengine.com/u/Astrotronic)\
**Post date:** [July 27, 2022, 6:50pm UTC](https://forums.unrealengine.com/t/sign-executable-for-windows/615720/2 "2022-07-27T18:50:34Z")

</div>

Hi Si Graf,

I don’t have any experience with Windows signing, but I’ve banged my head against keyboard plenty for Android + iOS signing so this piqued my interest.

I did a little bit of googling for that error, have you attempted to un-sign your exe first? (I wonder if Unreal tries to put some sort of signature on it, and that signature is interfering with the Microsoft Sign Tool)

Cheers

---

<div class="post-metadata">

**Author:** ![si.graf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@si.graf](https://forums.unrealengine.com/u/si.graf)\
**Post date:** [July 27, 2022, 7:25pm UTC](https://forums.unrealengine.com/t/sign-executable-for-windows/615720/3 "2022-07-27T19:25:37Z")

</div>

hi Astrotonic  
Thanks for the fast reply!  
I did check if the executable is already signed (in the properties window) and it‘s not. I also tried stripping any existing signatures with an utility called Delcert ([delcert - Sign strip tool | XDA Forums](https://forum.xda-developers.com/t/delcert-sign-strip-tool.416175/#post-2508061)) with no luck.

---

<div class="post-metadata">

**Author:** ![bayar513](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bayar513](https://forums.unrealengine.com/u/bayar513)\
**Post date:** [September 19, 2022, 10:56am UTC](https://forums.unrealengine.com/t/sign-executable-for-windows/615720/4 "2022-09-19T10:56:17Z")

</div>

Hi si.graf  
Have you found a solution for this issue?  
I am having the same issue.

---

<div class="post-metadata">

**Author:** ![si.graf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@si.graf](https://forums.unrealengine.com/u/si.graf)\
**Post date:** [September 21, 2022, 12:59pm UTC](https://forums.unrealengine.com/t/sign-executable-for-windows/615720/5 "2022-09-21T12:59:20Z")

</div>

Hi @bayar513  
We never managed to sign the executable in the root folder. Instead we decided to delete that exe. We now sign and use the executable in “root\myGame\Binaries\Win64\myGame-Win64-Shipping.exe”. This works fine for us so far.  
I hope this helps!

---

<div class="post-metadata">

**Author:** ![solarisx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@solarisx](https://forums.unrealengine.com/u/solarisx)\
**Post date:** [November 10, 2023, 11:36am UTC](https://forums.unrealengine.com/t/sign-executable-for-windows/615720/6 "2023-11-10T11:36:26Z")

</div>

Hi

@si.graf thanks for this valuable tip.

I would like to mention another solution. Its a bit more complicated, but it explains the problem. Described by @DethNinja at [Why does windows signtool report packaged .exe as invalid?](https://forums.unrealengine.com/t/why-does-windows-signtool-report-packaged-exe-as-invalid/367924/10)

---

<div class="post-metadata">

**Author:** ![bogi-9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bogi-9](https://forums.unrealengine.com/u/bogi-9)\
**Post date:** [January 4, 2025, 9:40pm UTC](https://forums.unrealengine.com/t/sign-executable-for-windows/615720/7 "2025-01-04T21:40:01Z")

</div>

> [@si.graf](#):
>
> use

Hello,  
I think there is an issue to use the shipping file because on a ‘new’ computer this files doesn’t check the system requirements.  
Do you have this problem ?  
(I am on unreal 5.3).
