RSA key pair for signing publications added
This commit is contained in:
parent
41c1fd2328
commit
17c63556ad
18
Makefile
18
Makefile
@ -72,7 +72,8 @@ All \
|
||||
Setup \
|
||||
SetupDebug \
|
||||
Register \
|
||||
Unregister :: "MSI\MSIBuild\Version\Version.mak"
|
||||
Unregister \
|
||||
GenRSAKeypair :: "MSI\MSIBuild\Version\Version.mak"
|
||||
$(MAKE) /f "Makefile" /$(MAKEFLAGS) HAS_VERSION=1 $@
|
||||
|
||||
"MSI\MSIBuild\Version\Version.mak" ::
|
||||
@ -139,10 +140,12 @@ UnregisterShortcuts ::
|
||||
######################################################################
|
||||
|
||||
"$(OUTPUT_DIR)" \
|
||||
"$(OUTPUT_DIR)\Keys" \
|
||||
"$(OUTPUT_DIR)\Setup" \
|
||||
"$(APPDATA)\Microsoft\Windows\Start Menu\Programs\ZRCola" :
|
||||
if not exist $@ md $@
|
||||
|
||||
"$(OUTPUT_DIR)\Keys" \
|
||||
"$(OUTPUT_DIR)\Setup" : "$(OUTPUT_DIR)"
|
||||
|
||||
|
||||
@ -287,4 +290,17 @@ $(REDIST_SL_X64) : "$(OUTPUT_DIR)\ZRColaSl64D.3.msi"
|
||||
$(MAKE) /f "Makefile" /$(MAKEFLAGS) LANG=Sl PLAT=x64 CFG=Debug
|
||||
cd "$(MAKEDIR)"
|
||||
|
||||
GenRSAKeypair :: \
|
||||
"$(OUTPUT_DIR)\Keys\verpriv.bin" \
|
||||
"$(OUTPUT_DIR)\Keys\verpub.bin"
|
||||
|
||||
"$(OUTPUT_DIR)\Keys\verkeypair.txt" : "$(OUTPUT_DIR)\Keys"
|
||||
openssl.exe genrsa -out $@ 4096
|
||||
|
||||
"$(OUTPUT_DIR)\Keys\verpriv.bin" : "$(OUTPUT_DIR)\Keys\verkeypair.txt"
|
||||
openssl.exe rsa -in $** -inform PEM -outform DER -out $@
|
||||
|
||||
"$(OUTPUT_DIR)\Keys\verpub.bin" : "$(OUTPUT_DIR)\Keys\verkeypair.txt"
|
||||
openssl.exe rsa -in $** -inform PEM -outform DER -out $@ -pubout
|
||||
|
||||
!ENDIF
|
||||
|
3
output/Keys/.gitignore
vendored
Normal file
3
output/Keys/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
/verkeypair.txt
|
||||
/verpriv.bin
|
||||
/verpub.bin
|
Loading…
x
Reference in New Issue
Block a user