Description: 1) Create a new Writer document, type some text in it, and save normally. 2) Now try and digitally sign the document with a X.509 compliant digital signature (I have a number of them provided by different providers for work, e.g. the European Patent Office, CertEurope (eIDAS token), World Intellectual Property Organisation. 3) Call up the Certificate Manager from the digital signatures dialog, and select a certificate. This is supposed to digitally sign the Writer document. 4) The user is returned to the document Digital Signaures dialog in which, in the event of a successful signature, the used signature included in the document is displayed in a list and the validity of that signature is indicated. In my case, that Digital Signature list window has a blank, selectable entry, i.e. you can see that there is supposed to be something in the digital signature list associated with the document, but the detail of what that signature is does not appear. A mouse hover over the blank entry calls the popup help "Lists the digital signatures for the current document." The document isn't signed at all. There is no change to the status of the document as evidenced by the Save button in the toolbar, and the dialog still shows an active "Sign" and "Start Certificate Manager" buttons. If I click on the "Sign" button in this state, I get a repeatable crash, and the recovery dialog is started. Steps to Reproduce: See description above. Actual Results: The digital signing functionality fails to work, the Writer document is never signed. Additionally, a reproducible crash can be made to occur by trying to use the "Sign" button in the pseudo-empty list of digital signatures. Expected Results: The digital signing functionality should work with X.509 certs provided by professional organisations. Reproducible: Always User Profile Reset: Yes Additional Info: 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
Added link to bug 94903, as it seems that they relate to the same problem, but Miklos preferred them to be separately identified.
(In reply to Alex Thurgood from comment #1) > Added link to bug 94903, as it seems that they relate to the same problem, > but Miklos preferred them to be separately identified. Although I don't have any X.509 certificates, can you post a recent crash log? I have fixed a few bugs in the Select Certificate dialog and from what you describe, maybe the crash is a failure to check for a null pointer.
I can confirm this on KDE Neon, with LibreOffice 24.2, installed form fresh ppa. I can view and select the certificate, but the document is not signed. Version: 24.2.1.2 (X86_64) / LibreOffice Community Build ID: 420(Build:2) CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb) Locale: hu-HU (en_US.UTF-8); UI: en-US Ubuntu package version: 4:24.2.1~rc2-0ubuntu0.22.04.1~lo1 Calc: threaded Os: KDE Neon, Plasma 6.
*** Bug 160432 has been marked as a duplicate of this bug. ***
Can also confirm this on 24.8.2.1 on macOS Sonomna 14.6.1. I my case, I had trouble to select a certificate in the first place: 1) Open "Digital signatures" 2) Select Sign Document => no certificates showed up, even as I have installed a few in the macOS Keychain. I also set the path to a directory with the certificates, they still did not show up. I managed to get an entry after installing Firefox, setting the Certificate path to the Firefox directory, and manually importing one of the certificates from the keychain into firefox. Firefox itself has access to the certificates located in the keychain, but to make it available to LibreOffice, I had to do the manual import. Then I basically had the same issue: 1) call up digital certificates 2) Select Sign Document 3) Select the Certificate now available through firefox 4) Click Sign => Document is not signed (The application however does not crash as also has been reported here)