Skip to content

0xced/RemoteSignTool

 
 

Repository files navigation

#Remote SignTool

This tool can be used to automate EV Codesigning process on your build server.

###Limitations of EV Codesignig with SafeNet token:

  1. You must login locally to buildserver. Or if you logged to server via RDP, you must attach token to local machine instead of server.
  2. If you have more than one developer who want to build project with signing files, you can't do it, because you cannot replicate your token.
  3. Windows service applications cannot sign files, because SafeNet denied this.

###Benefits of Remote SignTool To pass (partially) this limitations, I'm made Client-Server application. You can run server at any machine where you can login locally and attach EV token. Now you can have any number of build servers (or developer machines). On the client side, you call signttool client which send file to server via HTTP protocol and send signed file back. Client can act as regular signtool.exe, so no modifications needed in your build scripts.

###Limitations of Remote SignTool You must login locally (you cannot use RDP) to machine with EV token attached and start server application. Once started you must press "Test and start" button. Also you must use AutoPin tool which automatically put password for your token if SafeNet dialog appear.

##How to use ###Requirements:

  1. You must use TeamViewer or directly connect to admin console to server with EV token installed. a) If you will use TeamViewer, you must set on TV's client side "Never" for "Lock remote computer" option,(Go to Advanced settings -> "Advanced settings for connections to remote computers). b) Do not logout from session after launching RemoteSignTool server!
  2. You must set "Enable single logon" in the SafeNet Auth client Tools (Advanced View -> Client Settings -> Advanced)
  3. Please, use Delphi XE8 Upd1 to compile project OR you can use prebuit binaries from Releases page

###Usage:

  1. Login to computer where you placed this tool (server side). This can be build server itself. If you have access to admin console (locally or via TeamViewer).
  2. Sart AutoPin.exe with EV token passowrd as first argument:
AutoPin.exe YourPassHere
  1. Start RemoteSignTool_Server.exe. Press "Test and start" button. This will launch signtool on test file, if file successfully signed, HTTP server start and will ready to accept remote connections.
  2. Do not lock console. Close TeamViewer or leave console as-is.
  3. Now you can use RemoteSignTool_Client.exe to sign files remotely (or locally if you are instelled all parts on single machine - preferred)

About

This tool provide "remote" signtool

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Pascal 100.0%