• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Robon · Apr 07, 2013 at 01:51 PM · signingcertificate

Code SIgning Certificate

When my windows build is run it gives a security warning so I wish to implement code signing.

Once I have purchased the code signing signature, how do I sign my unity build?

Also can anyone recommend where to get a code signing certificate for a single developer at a reasonable price?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Cygon4 · Apr 07, 2013 at 03:22 PM

It is something that I yet have to do myself, but by the information I collected so far, signing an executable is relatively simple:

  1. Acquire a code signing certificate and import it into your Windows Certificate Store (Win+R, MMC, Ctrl+M, pick Certificates)

  2. Build your Unity game as normal, ending up with an unsigned .exe

  3. Use Microsoft SignTool as described here: Authenticode Code Signing with Microsoft SignTool

Take this with a grain of salt because I haven't gone through this process myself.

I can't make any good recommendations for cheap certificates as most currently offered at low prices are somehow associated with Comodo (they have been breached not too long ago, thus the price reductions).

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MrLucid72 · Oct 22, 2018 at 05:09 AM 0
Share

This answer is dated - anyone have an updated one?

avatar image
1

Answer by NickTemple · Sep 17, 2019 at 12:36 AM

Cygon4's answer is a little out-dated. To add some more info, Microsoft's up-to-date documentation on Signtool is here:

https://docs.microsoft.com/en-us/windows/win32/seccrypto/signtool

Windows SDK's have moved as well, to: "C:\Program Files (x86)\Windows Kits\10\bin".

You want to install an up-to-date version of the Windows 10 SDK and use Signtool from that, as Signtool has changed a bit over time.

For me, to use signtool it was simply:

  1. Build Unity project

  2. Setup signtool path in System Path Variable

  3. From the command line: signtool sign "build.exe"

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image omacha · Feb 11, 2020 at 12:56 PM 0
Share

Do you need to sign the DLLs as well? Or is it sufficient to just sign the main executable?

avatar image NickTemple · Feb 12, 2020 at 12:16 AM 0
Share

Just the executable

avatar image nbaja1 · May 13, 2020 at 03:21 PM 0
Share

Sorry can you explain step 2 "Setup signtool path in System Path Variable"?

avatar image NickTemple nbaja1 · May 13, 2020 at 11:19 PM 0
Share

This is not the place. Google "Adding folder paths to the Windows Path Variable". Add the sign tool folder to your path. This is so you can call sign tool from any folder, i.e. your build folder. Not a requirement, just makes it way easier.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Export key certificate to PEM format 0 Answers

Code signing certificate for Windows and MacOs 0 Answers

How to sign Windows build with EV Certificate 0 Answers

unity xcode an error occurred during export codesign failed 1 Answer

How does code licensing for Unity works? What happens when I post for evaluation / showcase? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges