Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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

3 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.

avatar image
1

Answer by Cjericho4 · Oct 07, 2021 at 08:09 PM

The Answer Nick Tempe gives works perfectly if you are self signing the app. If you do end up purchasing Code Signing Certification (if you need to have one for clients or to avoid the Windows prompt of it being software from the internet that may not be safe) then you will want to add some aditional flags to the signtool command.

My company needed a EV Code Certificate and the command that we use is: signtool sign /fd sha256 /tr http://ts.ssl.com /a

The /tr flag is to timestamp so that the program can run in the future even after your certificate has expired. The link after the flag is SSL.com's timestamp utility, Digicert also has one at: http://timestamp.digicert.com/ Additional info about this can be found: How Do I sign a Windows Application

If you will have an installer for your app be sure to sign the installer as well. If you use Inno to create your installer you can set it up to run the signtool automatically when the installer has compiled more info about that here: Inno Sign Tool

Comment
Add comment · 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

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.

Follow this Question

Answers Answers and Comments

16 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 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

Source code for library function "RecalculateNormals()"? 4 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges