https://bugs.documentfoundation.org/show_bug.cgi?id=156340
Bug ID: 156340 Summary: Document contains macro signed by OpenPGP key can't be enabled and causes operation hanging Product: LibreOffice Version: 7.6.0.0 beta1+ Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: medium Component: Calc Assignee: libreoffice-bugs@lists.freedesktop.org Reporter: frank...@goodhorse.idv.tw Created attachment 188422 --> https://bugs.documentfoundation.org/attachment.cgi?id=188422&action=edit Problematic file with signed signature https://ask.libreoffice.org/t/the-right-way-to-sign-a-macro/93656 The attachment there (also attached here) is an ods file with a simple macro, signed by the author's OpenPGP key. He signed the macro but not the file itself. When I opened it with LibreOffice 7.6.0.1, it asked me if I would trust the signature or not. If I clicked View Signature, it didn't show the signature, but directly got into the main screen with the macro button there. But then it told me that the macro was disabled due to Macro Security Settings (I set it to "Medium" - Confirmed required before executing macros from untrusted sources). Now a couple of problems here - 1. In this condition, I couldn't leave LibreOffice. Either clicked the x button in the upright corner, or selected "Exit LibreOffice" from File menu didn't work. 2. It didn't respond when I click "Show Macros" or hit the macro button ("hello world"). 3. In the Tools - Options - Security, when I clicked Macro Security to check, it popped a window saying Macro security problem! Broken certificate data: [a bunch of bogus messages] com.sun.star.uno.RuntimeException message: "at /home/buildslave/source/libo-core/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx:307" before showing the Macro security window. The file is signed by 7.0.4.2. Tested by 7.6.0.1: Version: 7.6.0.1 (X86_64) / LibreOffice Community Build ID: 776eaf34564cbf3f034a0ba1fd1d5c32ff9ccf1c CPU threads: 4; OS: Linux 6.3; UI render: default; VCL: kf5 (cairo+xcb) Locale: zh-TW (zh_TW.UTF-8); UI: en-US Calc: threaded -- You are receiving this mail because: You are the assignee for the bug.