<aside> šŸŒ https://ghostscript.com/r/Signing-Ghostpdf

</aside>

Digitally signing ghostpdf.inf

You must be running a version of Microsoft Windows to use the following tools.

Install Visual Studio 2013 (community edition is fine)

https://www.visualstudio.com/en-us/products/free-developer-offers-vs.aspx

Install the Windows Driver Kit

https://www.microsoft.com/en-us/download/details.aspx?id=42273

Source the Artifex signing certificates and passwords.

From the Start menu, open Visual Studio 2013->Visual Studio Tools. Right click ā€œDeveloper Command Prompt for VS2013ā€ and ā€˜Run as administratorā€™

Put the .inf file, and any associated required files (in the case of ghostscript.inf, this requires ghostscript.ppd) in a new folder.

Run:

$ inf2cat /driver:<folder where .inf file is stored> /os:7_x86,7_x64,8_x86,8_x64

Sign the .cat file by running:

$ signtool sign /f "<path to Artifex key>_for_signing_exes.pfx" /p <password for key> /t <http://timestamp.verisign.com/scripts/timestamp.dll> ghostpdf.cat

Ken Sharp - 2015-05-28