• ### Remove ads and support GameDev.net for only $3. Learn more: The New GDNet+: No Ads! • # Everything You Ever Wanted to Know About Authenticode Signing Business and Law • Posted By Brain # Introduction As part of releasing your game to the public, something which is often overlooked is code signing. Code signing is a cryptographic process whereby your game's executables and/or installer are marked as authentic, so that the person running the executable (or anyone else for that matter) can ensure that: • The executable has not been changed since it was signed • The executable was created on a specific date at a specific time • The executable was signed by a known, trackable entity (company or individual) responsible for the code within These give some definite advantages (as well as introducing some disadvantages) as shown below: ## Advantages of code signing • Signing your executables provides tracability of your code, allowing anyone to see who is responsible for the program • Signing adds authenticity which makes your game and your company (if there is one) more reputable and trustworthy • It will give positive weight to systems such as smartscreen filter and many anti-malware programs, which are more permissive of signed executables than unsigned. ## Disadvantages of code signing • There is an up-front cost involved in aquiring a certificate for code signing • If you do not have the required forms of identification or business documentation, obtaining a certificate can be hard to impossible • There is a learning curve to understanding how certificates work (which this article hopes to address) # The steps involved in signing your code To properly sign your code, you must follow several steps, which must be completed in a strict order. These steps are: ## Select a certificate authority Before you can sign your program code, you first need to select a certificate authority. The cost of object code signing has come down massively in price over the past few years. You will need to search for a certificate authority that will provide you with a type of certificate known as an "object code certificate" or "authenticode certificate". Here are some possible choices, this list is by no means exhaustive and I encourage you to search for additional sources of certificates before parting with any money: • StartSSL - You will need to pay for "StartSSL Verified" at$59.90 per year. Certificates last two years after which they must be renewed.
• Comodo - This costs $119.95 per year, however if you are a member of Tucows this can be reduced to$75 per year simply by purchasing through Tucows as a member.
• Verisign/Symantec - Traditionally the most expensive choice but popular with big business. Starts at $795 per year. Remember to shop around as many different resellers of certificates offer their product at a much lower price through third parties, for example as a business user you can get brand name certificates at a much lower price via RapidSSL. Also remember that a lot of the time, you are paying for brand names. All certificates I have listed here are equally trusted by the Windows operating system, so there isn't much point in paying$795 per year for a certificate when one you pay \$59.90 a year for will function identically.

Once the certificate authority has provided you with a link to download your certificate, you will then have in your possession one or more small encrypted files. You will either have (depending on the authority you selected) a seperate .crt and .key file, or a .pfx (or p7k) file, which is the .crt and .key files combined into one. You should make sure that these files are backed up securely, as if you lose them you may have to pay for re-issue of your certificate which can be costly. My advice is to move them immediately to a DVD-ROM and lock them away wherever you keep your paper driving license and home insurance, or whatever else holds value to you.

## Saving the certificate file

If your certificate authority has provided you with a .cer and .key file, I advise that before you continue, you convert it to a .pfx file as it is easier to work with on Windows. There are several ways to convert your files, and your certificate authority might provide you with an online tool or a simple download of your certificate in .pfx form. If they do, I suggest you use this feature as it will be more straightforward. If they do not provide such a facility, you can use the openssl toolkit to convert your .cer and .key file into .pfx using the command line below, for which you will need to install the openssl toolkit onto your PC, which is a free open source download: openssl pkcs12 -export -out yourcert.pfx -inkey yourkey.key -in yourcert.cer  The program will prompt you for a password, as part of the process I strongly recommend you enter a strong one as this will protect your certificate from misuse if it is obtained by any third party! Once you have the .pfx file, simply double click it and windows will prompt you to add it to your registry: You should mark the certificate as "not exportable" which will stop someone from simply extracting the certificate from your registry at a later date. Following through the wizard will prompt you for the password you set on the file, simply enter it, and continue clicking through the wizard accepting the defaults. Once complete, you will receive a message saying the certificate was successfully imported into your registry, which means you are now ready to sign executables! Please remember that the certificate you have purchased is valid for signing files until its expiry date so you only have to buy the certificate once every one or two years (or however long the certificate is valid for) and with this one purchase you can sign as many executables as you like, whenever you like. After this, the sky is literally the limit!

# Signing your executables, and timestamping

We now finally have the correct configuration and the correct files to be able to sign our executables. It is important to note however that there is one important difference between signing an executable, and putting an SSL certificate onto a website or most other uses of security certificates. Binary code may be timestamped. What this means, in simple terms, is that the signed executable can still be considered valid even if your certificate has expired, you just wouldn't be able to sign any new files with an expired certificate. To prove my point find any signed executable on your disk which is over three years old. The chances are, by now the certificate which was used to sign this file has expired (you can see this by right clicking on the file and choosing properties, then the 'security' tab) however if the file is timestamped, when you double click the file it will still be considered valid. Timestamping is a process done automatically when you sign your file. It involves contacting a third party server which counter-signs your file with a special value which references back to the certificate issuer's servers. This value can then be used to verify that the certificate was valid at the time of signing the file rather than right now. Because of this, you should always use your certificate authorities own timestamp server which you can easily find on Google. Armed with this information, signing your code is quite straightforward: "C:\Program Files (x86)\Windows Kits\8.0\bin\x64\signtool.exe" sign /d "Your games name" /tr http://www.startssl.com/timestamp /a path\to\your\executable.exe  In the command above we are using the signtool.exe binary, which comes with the Windows 8 development kit. There will likely be several copies of this executable on your disk and any one of them will do fine for this task. We specify the "friendly name" of our program using the /d parameter, as shown above, and the /tr parameter specifies the timestamp server as we discussed above. The command above can be used not only to sign executables, but also DLL files and OCX files, driver files, CLR bytecode, and just about any other type of windows executable you can imagine. Specifying the /a parameter to the signtool command simply tells it to use the first valid code signing certificate held within your registry to sign the file. If you followed this article to the letter this is where your code signing certificate and key will currently reside. I store my code signing certificate here as it is generally a secure place to put it, where you don't risk accidentally putting it into your code repository or into your network drives, encrypted or decrypted. Now you have finished the process, you can test your executable by double clicking it, and if your executable requires elevation (which most install packages etc do) then you will be presented with the friendly blue prompt:

# Summary

## Article Update Log

21 Apr 2015: Started work on article 7 May 2015: Initial release

Report Article

## User Feedback

Thank you for the step by step instructions.  Looks very easy to follow.  I'm off looking for CA now.

##### Share on other sites
You're welcome :) please let me know if anything is unclear so I can update the article. This is a pretty niche subject I think, but I'm hoping there are others who might suggest improvements :)

##### Share on other sites

Thanks, very good and detailed description. I am also pure hobbyist game developer, and was interested in this step.

The price tag however makes it a no go for me unfortunately, as I give my games away for free.

Out of curiousity, do you intend to do something similar for web certificates? (https). As much as I could figure out you wouldn't have to have a fully verified certificate in that case.

##### Share on other sites
@Endurion, If you go to startssl.com you can register for free and get fully recognised server certificates and email certificates. I used these for years until I also needed to do code signing which is where you start paying. You can find lots of tutorials on the Web about how to install that free certificate. Stay away from cacert though as their certificates although free are not properly recognised by windows. Have fun!

Thanks! :)

##### Share on other sites

Very nice article. Thanks for the hard work. :)

- Eck

##### Share on other sites

Thank you. This was very informative and I learned a lot from it.

## Create an account

Register a new account

• 0
• 0
• 1
• 1
• 3

• 9
• 33
• 13
• 13
• 10
• ### Similar Content

• Game developers will be able to become pioneers in the development of decentralized games for the gambling industry using DAO.Casino protocol.
On September 17, 2018, DAO.Casino is opening Sandbox for developers, independent teams and game development studios that choose to harness the power of the rapidly developing DApp industry.
Starting today everyone may submit their application for Sandbox on the official Sandbox page.
The Sandbox project is designed by DAO.Casino developers. Participants of Sandbox will learn the basics of decentralized applications development on DAO.Casino protocol. Developers participating in Sandbox will learn to create, design and deploy decentralized games and applications on Ethereum blockchain.
DAO.Casino is planning to reward most active developers for their constructive feedback on the improvement and optimization of the SDK and related documentation. The company will separately announce the details of the rewards program later this fall.
“We are confident that the Sandbox project will play an important role in our collaboration with studios and independent game developers. We cannot wait to see our product helping developers unleash their creative and entrepreneurial talents and apply those to one of the most groundbreaking technologies of the XXI century. — states Ilya Tarutov, CEO, DAO.Casino. – I am sure that the products we’re developing will transform the online gambling into a fair and transparent industry for all of the involved parties: casino operators, developers, and affiliate marketers. “
“We are launching the Sandbox with the goal of enabling as many developers as possible to learn to create decentralized games. We have achieved an important milestone by starting to accept applications from developers all around the world who share our idea to make online gambling fair and transparent. With our technology, developers can take the whole gambling industry to the next level” – says Alexandra Fetisova from DAO.Casino.
DAO.Casino is disrupting the online gambling industry by developing the protocol based on Ethereum blockchain technology. The protocol ensures the automation of transactions and facilitates interactions between all the industry participants: casino operators, game developers, and affiliate marketers. DAO.Casino team is fully dedicated to developing the best products and making the gambling industry a better place.

View full story

• Game developers will be able to become pioneers in the development of decentralized games for the gambling industry using DAO.Casino protocol.
On September 17, 2018, DAO.Casino is opening Sandbox for developers, independent teams and game development studios that choose to harness the power of the rapidly developing DApp industry.
Starting today everyone may submit their application for Sandbox on the official Sandbox page.
The Sandbox project is designed by DAO.Casino developers. Participants of Sandbox will learn the basics of decentralized applications development on DAO.Casino protocol. Developers participating in Sandbox will learn to create, design and deploy decentralized games and applications on Ethereum blockchain.
DAO.Casino is planning to reward most active developers for their constructive feedback on the improvement and optimization of the SDK and related documentation. The company will separately announce the details of the rewards program later this fall.
“We are confident that the Sandbox project will play an important role in our collaboration with studios and independent game developers. We cannot wait to see our product helping developers unleash their creative and entrepreneurial talents and apply those to one of the most groundbreaking technologies of the XXI century. — states Ilya Tarutov, CEO, DAO.Casino. – I am sure that the products we’re developing will transform the online gambling into a fair and transparent industry for all of the involved parties: casino operators, developers, and affiliate marketers. “
“We are launching the Sandbox with the goal of enabling as many developers as possible to learn to create decentralized games. We have achieved an important milestone by starting to accept applications from developers all around the world who share our idea to make online gambling fair and transparent. With our technology, developers can take the whole gambling industry to the next level” – says Alexandra Fetisova from DAO.Casino.
DAO.Casino is disrupting the online gambling industry by developing the protocol based on Ethereum blockchain technology. The protocol ensures the automation of transactions and facilitates interactions between all the industry participants: casino operators, game developers, and affiliate marketers. DAO.Casino team is fully dedicated to developing the best products and making the gambling industry a better place.
• By trapazza
Do heavily-loaded compute shaders affect the performance of the other "normal/render" shaders? or do they use a dedicated core?

• Hello, and thanks for taking the time to read my post.

I am not here asking for someone to do my work for me. I am just looking for a mentor who would not mind answering a few of my questions, and give me a little guidance.

I prefer chatting on discord, so if you are interested in helping me get started, please add me. My username is wize1 @8135

• How the heck would I know if I'd make a good game designer?

(I like me some words, so if you feel like skimming, basic stuff is in bold-italics lol):

Here’s my problem:

Dudes, I'm not very skilled at video games.

I played my first MMO ever yesterday with a 2-week-old character and totally sucked at the group play. Like, I got performance anxiety. Bad. Thank God I was a low-level or I would have felt like even more of an arse. Buttons weren't doing what I thought they should; fences were not being jumped over; healing (Lord, I was the healer) was few and far in-between. Um, guys, I couldn't even get the revive button to work. I don't even get test anxiety, but I was having flash backs to high school track and field and they were a bit not good. (*´=∀=) I was the first one to die and everyone ended up waiting on me at the beginning of the level because I thought I was literally just playing with my real-life friend and not two additional strangers--both of whom must have had the patience of saints and the vocabulary of sailors to get through that awful flashpoint. (ﾉ∀ﾟ*) [Will I regret going into this much detail? Probably. Stick around for lolz].

On one level, being a newb is completely hilarious and inevitable. On another--I just felt deflated. I thought--is is too little, too late? Despite playing games all my life I've never been competitive or cared about the nitty-gritty details of memorizing maps, coming in with gear, chatting with other people on the internet (**shudder**). I'm literally more comfortable giving speeches and talking on the phone with sales people than I am with chatting with fellow players online. Even chat forums are a stretch for me. (Heh).

So, can you be a good game designer while being a mediocre to middling player? How important is it to cater to competitive and multiplayer-based players? Does anybody else get multiplayer anxiety? I’m not a casual player per se--I just enjoy narrative experiences and quick matches (like in fighting games) more than party-based stuff. (As a disclaimer, I could actually see how FUN the MMO parties could be--if I knew what I was doing. But the idea of holding people back while looking like an imbecile who can’t use a mouse is mortifying--even if it is anonymous mortification xD).

Thanks in advance for those who read through (or read all, bless you) of this post. Also, if you’ve been to school for game design and wouldn’t mind sharing what you knew beforehand or wish you’d known beforehand, that’d be great.  All I know is I'm going to do the flashpoint again, to just get over the jitters, and hope I get to mastering it a bit. I like the gaming community--but, weirdly enough, it scares the daylights out of me.