Commit b9e4c0a8 authored by Thomas Bouffard's avatar Thomas Bouffard

doc(signtool): improve signtool settings

parent bdab91fa
......@@ -8,7 +8,8 @@ Provide a REST endpoint used by our CI to sign MacOs and windows binaries with o
* Up to date Windows OS
* Disable the screen saver and sleep mode !
* Install the [Windows SDK](
* Install the [Windows SDK]( as the signing process
requires [signtool](
* Install a JDK 8 and configure your `Path` environment variable
* Install [SafeNetAuthenticationClient](
* Ensure that `C:\Program Files (x86)\Windows Kits\10\App Certification Kit\` is in the `Path` environment variable (you should be able to run the command `signtool` in powershell)
......@@ -25,13 +25,22 @@ class WindowsCodeSign {
private val logger: Log = LogFactory.getLog(javaClass)
fun signWindowsProduct(file: File) : File {
val processBuilder = ProcessBuilder("signtool", "sign", "/tr", "",
"/td", "sha256", "/fd", "sha256", "/a", file.canonicalFile.absolutePath)"Signing windows file...")
val signResult = processBuilder.inheritIO().start().waitFor()
// List of sign options available at
val signResult = ProcessBuilder("signtool", "sign",
"/tr", "", //
"/td", "sha256", //
"/fd", "sha256", //
"/a", //
.waitFor()"Signing result: $signResult")
if (signResult == 1) {
throw SignException("An error occurred while signing file.")
}"Signing successfully completed")
return file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment