Files
dependencies/WinSparkle-0.6.0/bin/generate_keys.bat
Rafael Kitover fa2265a8be Remove winsparkle-static submod, use bin release.
Getting winsparkle-static to work for us is going to be complicated,
because it also initializes a wxWidgets app.

For the time replace it with a binary release of winsparkle, we will
package the dll as a resource.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
2019-11-05 00:36:01 +00:00

31 lines
743 B
Batchfile

@echo off
FOR %%i IN ("dsaparam.pem" "dsa_priv.pem" "dsa_pub.pem") DO (
if exist %%i (
echo There's already a %%i here! Move it aside or be more careful!
exit /b 1
)
)
openssl dsaparam 4096 > dsaparam.pem
openssl gendsa dsaparam.pem -out dsa_priv.pem
del /F /Q dsaparam.pem
openssl dsa -in dsa_priv.pem -pubout -out dsa_pub.pem
FOR %%i IN ("dsa_priv.pem" "dsa_pub.pem") DO (
if not exist %%i (
echo Failed to create %%i!
exit /b 1
)
)
echo[
echo Generated two files:
echo dsa_priv.pem: your private key. Keep it secret and don't share it!
echo dsa_pub.pem: public counterpart to include in youe app.
echo BACK UP YOUR PRIVATE KEY AND KEEP IT SAFE!
echo If you lose it, your users will be unable to upgrade!
echo[