From 581248b7091fb5bdd26804bb024344447e6868db Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Wed, 25 Dec 2019 14:57:40 +0500 Subject: [PATCH] Deploy: Add signing scripts. --- deploy/sign/sign-driver.bat | 10 ++++++++++ deploy/sign/sign-out.bat | 6 ++++++ deploy/sign/sign-verify.bat | 9 +++++++++ 3 files changed, 25 insertions(+) create mode 100644 deploy/sign/sign-driver.bat create mode 100644 deploy/sign/sign-out.bat create mode 100644 deploy/sign/sign-verify.bat diff --git a/deploy/sign/sign-driver.bat b/deploy/sign/sign-driver.bat new file mode 100644 index 00000000..fd293903 --- /dev/null +++ b/deploy/sign/sign-driver.bat @@ -0,0 +1,10 @@ +@cd %~dp0 +@echo off + +@rem ARCH: 64, 32 +@set ARCH=%1 + +@set DRV_PATH=..\build\driver\fortfw%ARCH%.sys + +signtool.exe sign /ac "cert\Certum Trusted Network CA.crt" /n "Open Source Developer, Nodir Temirkhodjaev" /fd sha1 /t http://time.certum.pl/ %DRV_PATH% +signtool.exe sign /as /ac "cert\Certum Trusted Network CA.crt" /n "Open Source Developer, Nodir Temirkhodjaev" /fd sha256 /tr http://time.certum.pl/ %DRV_PATH% diff --git a/deploy/sign/sign-out.bat b/deploy/sign/sign-out.bat new file mode 100644 index 00000000..92cb5eab --- /dev/null +++ b/deploy/sign/sign-out.bat @@ -0,0 +1,6 @@ +@cd %~dp0 +@echo off + +@set OUT_PATH=..\Output\*.exe + +signtool.exe sign /ac "cert\Certum Trusted Network CA.crt" /n "Open Source Developer, Nodir Temirkhodjaev" /fd sha256 /tr http://time.certum.pl/ %OUT_PATH% diff --git a/deploy/sign/sign-verify.bat b/deploy/sign/sign-verify.bat new file mode 100644 index 00000000..33362948 --- /dev/null +++ b/deploy/sign/sign-verify.bat @@ -0,0 +1,9 @@ +@cd %~dp0 +@echo off + +@rem ARCH: 64, 32 +@set ARCH=%1 + +@set DRV_PATH=..\build\driver\fortfw%ARCH%.sys + +signtool.exe verify /v /kp %DRV_PATH%