Hello, I upgraded to the latest release of LibreOffice 6.0.0.3x64 and GPG4Win 3.0.3 (in this order) on Windows 10 Enterprise 1709 Build 16299.125. Since I already use PGP encryption for my mails with Tunderbird and Enigmail, I wanted to try out this feature in LO Writer. But when I check the box to encrypt my document and click "save", no PGP key is listed in the following window. I can start either Kleopatra or GPA and there is my key and I can edit or delete it. In order to solve this problem, I tried (re-)installing GPG4Win multiple times and also deleted the folder c:\Users\[user]\AppData\Roaming\gnupg\ Still no key is presented when I want to encrypt a document and hoping for a solution. Please feel free to contact me if I can provide any details. Sincerely, roman
Three initial questions: * which path is Gpg4Win installed on your box? * is it installed system-wide, or just for your user? * does digital signing work? after saving a file as ODF, go to File->Digital Signatures->Digital Signatures..., then click Sign. Does the following dialog show any OpenPGP keys?
* I have multiple drives and GPG4Win is installed on "e:\Programme\GnuPG\". The system is on drive C. (LibreOffice is here: "e:\Programme\LibreOffice 6\") * Since I can't choose during installation, I'm not sure if it is user only or not. But I have, as far as I know, two folders related to GPG4Win on my system drive: c:\Users\[username]\AppData\Roaming\gnupg\ c:\Users\All Users\GNU\ * The dialog is also completly empty, like when I want to encrypt a document on saving.
(In reply to Roman Schleicher from comment #2) > * I have multiple drives and GPG4Win is installed on "e:\Programme\GnuPG\". > The system is on drive C. (LibreOffice is here: "e:\Programme\LibreOffice > 6\") > > Ok, so right now we're cheating a bit for finding the kleopatra executable on windows - we're expecting that under C:\\Program Files (x86)\\GNU\\GnuPG Which explains the 'no key management solution found'. For doing the actual crypto, that's delegated to gpgme, which IIRC does something like this (in order): * check if registry key "HKEY_LOCAL_MACHINE\\Software\\GNU\\GnuPG\\Install Directory" is present (careful, win64 and win32 have different registry trees!) * check if it's under Program Files, with the following path: GNU\\GnuPG\\gpg.exe (calling those functions: SHGetSpecialFolderPathA(...CSIDL_PROGRAM_FILES...) SHGetSpecialFolderPathA(...CSIDL_PROGRAM_FILESX86...) ) * throwing up arms in despair and giving up So if your default Windows program directory is indeed e:\\Programme, then the correct path where gpgme would find the binaries would be e:\\Programme\\GNU\\GnuPG\\gpg.exe Or you could try to set the above registry entry.
To clarify something: e:\programme is not my default Windows\Programs folder. It's just another drive (SSD) on which I manually choose to install programs to. In Thunderbird / Enigmail I can manually point to this path so it can find gpg.exe. The registry key for GnuPG on my system is the following: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GnuPG and the content of "Install Directory" is "e:\Programme\GnuPG\..\GnuPG". I already tried to make another key ("HKEY_LOCAL_MACHINE\Software\GNU\GnuPG\Install Directory") with both, the same path like above and an absolute path (e:\Programme\GnuPG\bin\) where all the binaries are stored. No success there. As a last option I used the default install directory for GPG4Win which is "C:\Program Files (x86)\Gpg4win". With this scenario, LO was able to find and use my keys to encrypt a document. Sidenote: I don't not, what happend, but today LO reset all my settings as if I deliberately deleted the folder "c:\Users\[username]\AppData\Roaming\LibreOffice\". It's not a big deal but I thought it's worth mentioning.
(In reply to Roman Schleicher from comment #4) > I already tried to make another key with both, the same path like > above and an absolute path (e:\Programme\GnuPG\bin\) where all the > binaries are stored. No success there. > Ok, shame - > As a last option I used the default install directory for GPG4Win which is > "C:\Program Files (x86)\Gpg4win". With this scenario, LO was able to find > and use my keys to encrypt a document. > Great, thx a lot for chasing that down to the bottom - the analysis is now pretty complete. We'll see if we can either get the registry key, or a LibreOffice-wide option to work.
Dasselbe Problem auf meinem Dell Latitude E6430 mit Windows 10 Prof 64bit (16299.214). In LO "Extras/Optionen/Benutzerdaten/Verschlüsselung/OpenPGP-Signaturschlüssel bzw. OpenPGP Schlüssel zum Verschlüsseln" lassen sich keine meiner Schlüssel auswählen. Im "Speichern unter" Dialog werden unter "Mit gpg verschlüsseln" meine gpg Zertifikate angezeicht und Dokumente lassen sich verschlüsseln. Aus Testgründen habe ich für LO speziell ein neues Benutzerprofil angelegt. Trotzdem können unter "Extras/Optionen/Benutzerdaten/Verschlüsselung/OpenPGP-Signaturschlüssel bzw. OpenPGP Schlüssel zum Verschlüsseln" keine ausgewählt und eingestellt werden. Zur Info: Binaries sind um gpg4win Installationsverzeichnis = "C:\Program Files (x86)\Gpg4win\bin" vorhanden. "gpg" ist korrekt im "path" vorhanden. reg keys sind vorhanden: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GnuPG HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Gpg4win
Maybe those are 2 different problems, Hans does see his GPG keys in File > Save as > Encrypt with GPG (check) > Save also in File > Digital Signatures > Digital Signatures > (save if needed) > Sign Document ... but not in Tools > Options > User Data While Roman doesn't see his GPG keys at all Is that right?
yes, that is the case with me
Just guessing, isn't the problem that GPGSEInitializer is listed in xmlsecurity/util/xsec_xmlsec.component, but not in xmlsecurity/util/xsec_xmlsec.windows.component? (I don't have a Windows box with PGP configured to test.)
Thorsten Behrens committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=e2d8e2e0e2248de980f59af15e8b3472c8f56f70 tdf#115374: add GPG SEInitializer service for Windows It will be available in 6.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Thorsten Behrens committed a patch related to this issue. It has been pushed to "libreoffice-6-0": http://cgit.freedesktop.org/libreoffice/core/commit/?id=6651a8e85824b11395f1c3110afe8dd91bb83375&h=libreoffice-6-0 tdf#115374: add GPG SEInitializer service for Windows It will be available in 6.0.2. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
The above should fix Hans' problem - test builds here: https://dev-builds.libreoffice.org/daily/libreoffice-6-0/Win-x86_64@42/
Yep, now I can see list of my keys. Tried it with build libo-60-64_2018-03-01_04.43.15_LibreOfficeDev_6.0.3.0.0_Win_x64. In stable version (LibreOffice_6.0.2.1_Win_x64) problem persists. Thanks! Hans
> In stable version (LibreOffice_6.0.2.1_Win_x64) problem persists. The fix prolly didn't make 6.0.2 RC1 cut-off: https://wiki.documentfoundation.org/Releases/6.0.2/RC1 Hopefully final release will have it
(In reply to Katarina Behrens (CIB) from comment #14) > > In stable version (LibreOffice_6.0.2.1_Win_x64) problem persists. > > The fix prolly didn't make 6.0.2 RC1 cut-off: > https://wiki.documentfoundation.org/Releases/6.0.2/RC1 Hopefully final > release will have it Ok now in 6.0.3.1 (de). I can see and select/set my keys!
Reported as fixed.
I have the problem in LO 6.1.0.3 (x64) Windows 10 Best, Ch. Potter