-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy pathInstallSigningKey.bat
More file actions
31 lines (29 loc) · 2.37 KB
/
InstallSigningKey.bat
File metadata and controls
31 lines (29 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@ECHO OFF
REM This installs the signing key for tSQLt on the local machine.
REM If you do not have access to the original key, create your own and use SN.exe to install it into the tSQLt_OfficialSigningKey container.
REM This is only needed if you want to build tSQLt yourself.
REM
cd /d "%~dp0"
DEL KeyInfo.txt
DEL KeyInfoC.txt
ECHO --------------------------------------------------------------------------------------------------------------------
ECHO Deleting existing container (might fail)
ECHO --------------------------------------------------------------------------------------------------------------------
"c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\sn.exe" -d tSQLt_OfficialSigningKey
ECHO --------------------------------------------------------------------------------------------------------------------
ECHO Installing Key
ECHO --------------------------------------------------------------------------------------------------------------------
"c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\sn.exe" -i tSQLtOfficialSigningKey.pfx tSQLt_OfficialSigningKey
ECHO --------------------------------------------------------------------------------------------------------------------
ECHO Extracting Key Info
ECHO --------------------------------------------------------------------------------------------------------------------
"c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\sn.exe" -p tSQLtOfficialSigningKey.pfx KeyInfo.txt sha1
"c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\sn.exe" -pc tSQLt_OfficialSigningKey KeyInfoC.txt sha1
ECHO --------------------------------------------------------------------------------------------------------------------
ECHO KeyInfo from file
ECHO --------------------------------------------------------------------------------------------------------------------
"c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\sn.exe" -tp KeyInfo.txt
ECHO --------------------------------------------------------------------------------------------------------------------
ECHO KeyInfo from container
ECHO --------------------------------------------------------------------------------------------------------------------
"c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\sn.exe" -tp KeyInfoC.txt