Skip to content

TownSuite/TownSuite.CodeSigning.Service

Repository files navigation

Run the service

Open appsettings.json set the path to the windows sdk signtool.exe and modify the signtool options.

Open powershell and run:

$env:ASPNETCORE_URLS="http://+:5000"; .\TownSuite.CodeSigning.Service.exe

curl example

curl --location 'https://localhost:7153/sign' \
--header 'Content-Type: application/x-msdownload' \
--data '@/C:/the/file/to/upload/and/sign.dll' \
-o output-signed-file.dll

TownSuite.CodeSigning.Client example

./TownSuite.CodeSigning.Client -folder "/path/to/folder/with/assemblies" -file "*.dll;*.exe" -timeout 30000 -url "https://localhost:5000/sign" -token "the token"

Windows Defender Exclusion

For increased performance add the services working directory to the windows defender exclusion path.

Important Note:

  • Security Risks: Be cautious when excluding directories from antivirus scans, as this can potentially expose your system to threats if malicious files are placed in these directories.
Add-MpPreference -ExclusionPath "C:\Users\[USER]\AppData\Local\Temp\1\townsuite\codesigning"

Initial Security

  • Add a firewall allow list on the server hosting the code signing service.
  • bearer tokens

About

minimal code signing service

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •