Bug 157724 - GPG key cannot be selected in (macOS appstore MAS version)
Summary: GPG key cannot be selected in (macOS appstore MAS version)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.5.7.1 release
Hardware: ARM macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Mac-AppStore, MacOS-Vanilla OpenPGP
  Show dependency treegraph
 
Reported: 2023-10-12 10:39 UTC by Sebastian Davids
Modified: 2024-02-07 07:52 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
OpenPGP signing key combo box not showing the existing private key (207.19 KB, image/png)
2023-10-12 10:39 UTC, Sebastian Davids
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Davids 2023-10-12 10:39:21 UTC
Created attachment 190167 [details]
OpenPGP signing key combo box not showing the existing private key

In the Mac App Store version of LibreOffice one cannot select a GPG key (see attached screenshot).

If it is a feature one cannot use due to the macOS App Sandbox then the Cryptography section should be disabled.

@@@@

Version: 7.5.7.1 (AARCH64) / LibreOffice Community
Build ID: 251dda8ea43bee3bb5c181c1408696532dc5d050
CPU threads: 8; OS: Mac OS X 14.0; UI render: default; VCL: osx
Locale: de-DE (en_US.UTF-8); UI: en-US
Calc: threaded

@@@@

~ % uname -a              
Darwin redacted 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:34 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T8103 arm64
~ % sw_vers               
ProductName:		macOS
ProductVersion:		14.0
BuildVersion:		23A344
~ % /usr/libexec/PlistBuddy -c "Print:CFBundleName" -c "Print:CFBundleVersion" /Applications/LibreOffice.app/Contents/Info.plist
LibreOffice
7.5.7011
~ % which gpg
/usr/local/bin/gpg
~ % gpg --version
gpg (GnuPG/MacGPG2) 2.2.41
libgcrypt 1.8.10
Copyright (C) 2022 g10 Code GmbH
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /Users/redacted/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
~ % gpg --list-secret-keys
/Users/redacted/.gnupg/pubring.kbx
-----------------------------
sec   rsa4096/99A97C778DCDF19F 2017-03-28 [SC] [expires: 2024-08-01]
      Key fingerprint = 3B05 1F8E AA0B 63D1 7220  168C 99A9 7C77 8DCD F19F
uid                 [ultimate] Sebastian Davids <sdavids@gmx.de>
ssb   rsa4096/4E56B33286E422F6 2017-03-28 [E] [expires: 2024-08-01]
ssb   rsa4096/31B9C30113CF3596 2017-03-28 [S] [expires: 2024-08-01]
ssb   rsa4096/41F4DFFF9CB8C3BF 2017-05-18 [A] [expires: 2024-08-01]
ssb#  rsa4096/DFA1CE8C3D085622 2017-05-06 [S] [expires: 2024-08-01]
Comment 1 Alex Thurgood 2023-10-13 13:43:03 UTC
(In reply to Sebastian Davids from comment #0)
 
> If it is a feature one cannot use due to the macOS App Sandbox then the
> Cryptography section should be disabled.
> 

Along with lots of other stuff that deliberately doesn't / can't work, due to MAS restrictions, which would make it a duplicate request of bug 154424.
Comment 2 Alex Thurgood 2023-10-13 13:56:55 UTC
FWIW, confirming with

Apple AppStore
Version: 7.5.7.1 (AARCH64) / LibreOffice Community
Build ID: 251dda8ea43bee3bb5c181c1408696532dc5d050
CPU threads: 8; OS: Mac OS X 14.0; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 3 steve 2023-12-23 15:42:47 UTC
The MacGPG version you checked was probably installed separately. LO comes with gpgme, and an outdated version of that.

@Sebastian: Could you try the standalone download and if key selection works as expected in version 7.6.4?
https://www.libreoffice.org/download/download-libreoffice/
Comment 4 Alex Thurgood 2024-02-07 07:52:50 UTC
(In reply to steve from comment #3)
> The MacGPG version you checked was probably installed separately. LO comes
> with gpgme, and an outdated version of that.
> 
> @Sebastian: Could you try the standalone download and if key selection works
> as expected in version 7.6.4?
> https://www.libreoffice.org/download/download-libreoffice/

With the standalone version, e.g. daily master build: 

Version: 24.8.0.0.alpha0+ (AARCH64) / LibreOffice Community
Build ID: 467eeda66ee444c846fcd89da1fe064dd06daa9d
CPU threads: 8; OS: macOS 14.2.1; UI render: Skia/Raster; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded


GPG key selection and signing works for me at least with: 

GPG Tools Version 1.12 (1800)

However, it still doesn't work with LibreOffice from the MAS:

Version: 7.5.9.2 (AARCH64) / LibreOffice Community
Build ID: cdeefe45c17511d326101eed8008ac4092f278a9
CPU threads: 8; OS: Mac OS X 14.2.1; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

No GPG keys are detected or selectable under:
LibreOffice Preferences > Identity > Encryption

No possibility to enter a path to the Certificate manager exists under :
LibreOffice Preferences > Security


Basically, this is non-functional in the Mac AppStore version.