<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Digital signature of .odt files with with hardware token (Hungarian eID) is not working"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=112104">112104</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Digital signature of .odt files with with hardware token (Hungarian eID) is not working
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>5.4.0.3 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>daniel.sutto@idomsoft.hu
</td>
</tr></table>
<p>
<div>
<pre>Description:
I try to digitally sign LibreOffice documents using the Hungarian eID. Signing
of pdf documents works properly, but LibreOffice crashes when signing an .odt.
It is possible to sign both document types with software keys (pkcs#12) using
the same signature altorithm.
I was using Debian testing/buster (amd64) image.
Steps to Reproduce:
1. Install middleware application (eSzemélyi Kliens)
2. Load /usr/bin/eszig-pkcs11.so as Secuirty Device in Firefox preferences
3. Create a simple document with Writer, save it.
4. Open Digital Signatures dialog (File->Digital Signatures->Digital
Signatures)
5. Click Sign Document, enter eSign PIN of the previously connected eID card.
6. Select certificate and click OK
Actual Results:
Libre Office crashes before any command is sent to the card.
Expected Results:
The document should have been signed.
Reproducible: Always
User Profile Reset: No
Additional Info:
If the document is exported as pdf, and File->Digital Signatures->Sign existing
pdf is selected, the PAdES digital signature can be added to the pdf document.
Hungarian eID is a hardware based token, PKCS#11 library is installed as a part
of "eSzemélyi Kliens", which can be downloaded from
<a href="https://eszemelyi.hu/letoltesek">https://eszemelyi.hu/letoltesek</a>
Sample card can be provided by Ministery of Interior
(<a href="mailto:eszemelyi-szerver@bm.gov.hu">eszemelyi-szerver@bm.gov.hu</a>) or directly by Idomsoft
(<a href="mailto:eid-szerver@idomsoft.hu">eid-szerver@idomsoft.hu</a>).
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101
Firefox/55.0</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>