Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added GnuPG/bin/gpg-agent.exe
Binary file not shown.
Binary file added GnuPG/bin/gpg-card.exe
Binary file not shown.
Binary file added GnuPG/bin/gpg-check-pattern.exe
Binary file not shown.
Binary file added GnuPG/bin/gpg-connect-agent.exe
Binary file not shown.
31 changes: 31 additions & 0 deletions GnuPG/bin/gpg-disable-keyboxd.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@echo off
setlocal EnableDelayedExpansion

echo --- Migrating your OpenPGP Certificates (Public Keys) from Keyboxd to the old format ---
echo --- If this fails or produces empty results your certificates are in the state where you migrated to keybox in the first place ---
echo Shutting down Kleopatra...
TASKKILL /F /IM kleopatra.exe 2>NUL
echo Shutting down background processes...
gpgconf --kill all
FOR /F "tokens=*" %%g IN ('gpgconf -L homedir') do (set GPGH=%%~g)
if "!GPGH!" == "" echo Failed to find homedir && exit /b 1
echo Using "!GPGH!" as GnuPG Homedir.
echo Exporting OpenPGP certificates to !GPGH!\pubring-migration-bkp-openpgp.gpg"
gpg --export-options backup --export > "!GPGH!\pubring-migration-bkp-openpgp.gpg" || echo Failed to export OpenPGP certs && exit /B 1
echo Exporting X509 certificates to !GPGH!\pubring-migration-bkp-x509.pem"
gpgsm --export -a > "!GPGH!\pubring-migration-bkp-x509.pem" || echo Failed to export X509 certs && exit /B 1

echo Disabling keyboxd by deleting common.conf
del "!GPGH!\common.conf"

echo Importing OpenPGP certificates... this might take a while
rem in tests with larger keyrings error handling resulted in too many false positive errors see: T6596
gpg --no-auto-check-trustdb --import-options keep-ownertrust,bulk-import,restore --import "!GPGH!\pubring-migration-bkp-openpgp.gpg"
rem || echo Failed to import OpenPGP keys. Please report this to https://dev.gnupg.org/u/rgpg4win && del "!GPGH!\common.conf" && exit /B 1
echo Importing X509 certificates... this might take a while
gpgsm --disable-dirmngr --import "!GPGH!\pubring-migration-bkp-X509.pem"
rem || echo Failed to import X509 certs. Please report the output to https://dev.gnupg.org/u/rgpg4win && del "!GPGH!\common.conf" && exit /B 1

echo Checking database..
gpg --check-trustdb
echo All done.
39 changes: 39 additions & 0 deletions GnuPG/bin/gpg-enable-keyboxd.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
@echo off
setlocal EnableDelayedExpansion

echo --- Migrating your OpenPGP Certificates (Public Keys) to the new Keyboxd format ---
echo Shutting down Kleopatra...
TASKKILL /F /IM kleopatra.exe 2>NUL
echo Shutting down background processes...
gpgconf --kill all
FOR /F "tokens=*" %%g IN ('gpgconf -L homedir') do (set GPGH=%%~g)
if "!GPGH!" == "" echo Failed to find homedir && exit /b 1
echo Using "!GPGH!" as GnuPG Homedir.
echo Exporting OpenPGP certificates to !GPGH!\keyboxd-migration-bkp-openpgp.gpg"
gpg --export-options backup --export > "!GPGH!\keyboxd-migration-bkp-openpgp.gpg" || echo Failed to export OpenPGP certs && exit /B 1
echo Exporting X509 certificates to !GPGH!\keyboxd-migration-bkp-x509.pem"
gpgsm --export -a > "!GPGH!\keyboxd-migration-bkp-x509.pem" || echo Failed to export X509 certs && exit /B 1

if exist "!GPGH!\common.conf" (
echo Backing up common.conf to common.conf_sik
copy /Y "!GPGH!\common.conf" "!GPGH!\common.conf_sik"
)

echo Enabling keyboxd in common.conf
echo use-keyboxd > "!GPGH!\common.conf"

echo Importing OpenPGP certificates... this might take a while
rem in tests with larger keyrings error handling resulted in too many false positive errors see: T6596
gpg --no-auto-check-trustdb --import-options keep-ownertrust,bulk-import,restore --import "!GPGH!\keyboxd-migration-bkp-openpgp.gpg"
rem || echo Failed to import OpenPGP keys. Please report this to https://dev.gnupg.org/u/rgpg4win && del "!GPGH!\common.conf" && exit /B 1
echo Importing X509 certificates... this might take a while
gpgsm --disable-dirmngr --import "!GPGH!\keyboxd-migration-bkp-X509.pem"
rem || echo Failed to import X509 certs. Please report the output to https://dev.gnupg.org/u/rgpg4win && del "!GPGH!\common.conf" && exit /B 1

echo Checking database..
gpg --check-trustdb
echo All done.
echo Your certificates are now stored in "!GPGH!\public-keys.d"
echo Please report issues https://dev.gnupg.org/u/rgpg4win

echo If you encounter issues you can switch back by using "gpg-disable-keyboxd"
Binary file added GnuPG/bin/gpg-preset-passphrase.exe
Binary file not shown.
Binary file added GnuPG/bin/gpg-wks-client.exe
Binary file not shown.
Binary file added GnuPG/bin/gpg.exe
Binary file not shown.
Binary file added GnuPG/bin/gpgconf.exe
Binary file not shown.
Binary file added GnuPG/bin/gpgme-w32spawn.exe
Binary file not shown.
Binary file added GnuPG/bin/gpgsm.exe
Binary file not shown.
Binary file added GnuPG/bin/gpgtar.exe
Binary file not shown.
Binary file added GnuPG/bin/gpgv.exe
Binary file not shown.
Binary file added GnuPG/bin/keyboxd.exe
Binary file not shown.
Binary file added GnuPG/bin/libassuan-9.dll
Binary file not shown.
Binary file added GnuPG/bin/libgcrypt-20.dll
Binary file not shown.
Binary file added GnuPG/bin/libgpg-error-0.dll
Binary file not shown.
Binary file added GnuPG/bin/libgpgme-11.dll
Binary file not shown.
Binary file added GnuPG/bin/libksba-8.dll
Binary file not shown.
Binary file added GnuPG/bin/libnpth-0.dll
Binary file not shown.
Binary file added GnuPG/bin/libntbtls-0.dll
Binary file not shown.
Binary file added GnuPG/bin/libsqlite3-0.dll
Binary file not shown.
Binary file added GnuPG/bin/pinentry-basic.exe
Binary file not shown.
Binary file added GnuPG/bin/scdaemon.exe
Binary file not shown.
Binary file added GnuPG/bin/zlib1.dll
Binary file not shown.
Binary file added GnuPG/gnupg-uninstall.exe
Binary file not shown.
Loading