<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>pre,code,address {
  margin: 0px;
}
h1,h2,h3,h4,h5,h6 {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}
ol,ul {
  margin-top: 0em;
  margin-bottom: 0em;
}
blockquote {
  margin-top: 0em;
  margin-bottom: 0em;
}
</style>
</head>
<body>
<div>Package: papers</div>
<div>Version: 48~beta-3</div>
<div>Severity: normal</div>
<div><br>
</div>
<div>With a PDF file open in papers, using the 3-dots menu option "Sign Digitally...",
</div>
<div>an error window opens:</div>
<div>"Certificate Required: A certificate is required to sign this document"</div>
<div>with only a close button.</div>
<div><br>
</div>
<div>Repeated error messages appear in the logs:</div>
<div><br>
</div>
<pre>kernel: audit: type=1400 audit(1741284589.250:40181): apparmor="DENIED" operation="open" class="file" profile="/usr/bin/papers" name="/home/user/.mozilla/firefox/1vozuxfg.default-esr/pkcs11.txt" pid=13594 comm="papers" requested_mask="r" denied_mask="r" fsuid></pre>
<pre>kernel: audit: type=1400 audit(1741284589.250:40182): apparmor="DENIED" operation="open" class="file" profile="/usr/bin/papers" name="/home/user/.mozilla/firefox/1vozuxfg.default-esr/cert9.db" pid=13594 comm="papers" requested_mask="r" denied_mask="r" fsuid=1></pre>
<pre>kernel: audit: type=1400 audit(1741284589.254:40183): apparmor="DENIED" operation="file_lock" class="file" profile="/usr/bin/papers" name="/home/user/.pki/nssdb/cert9.db" pid=13594 comm="papers" requested_mask="k" denied_mask="k" fsuid=1000 ouid=1000</pre>
<pre>[...previous line repeated 8 times...]</pre>
<pre>org.gnome.Papers.desktop[13594]: NSS_Init failed: security library: bad database.</pre>
<div><br>
</div>
<div>There was a valid certificate stored in the connected smart card device and it was correctly detected by Firefox and LibreOffice.</div>
<div>There was also a valid software certificate registered and recognized by Firefox and LibreOffice in $HOME/.pki/nssdb/
</div>
<div>The NSS database was verified by command: "certutil -d sql:$HOME/.pki/nssdb -L".</div>
<div><br>
</div>
<div>This error might be related to bug #1098717, about the apparmor configuration of papers package.</div>
<div><br>
</div>
<div><span></span></div>
<br>
<div style="font-size: 9pt; color: #939598; font-family: 'Arial',sans-serif;"><b>AVISO LEGAL</b>. Este mensaje puede contener información reservada y confidencial. Si usted no es el destinatario no está autorizado a copiar, reproducir o distribuir este mensaje
 ni su contenido. Si ha recibido este mensaje por error, le rogamos que lo notifique al remitente.
</div>
<div style="font-size: 9pt; color: #939598; font-family: 'Arial',sans-serif;">Le informamos de que sus datos personales, que puedan constar en este mensaje, serán tratados en calidad de responsable de tratamiento por la UNIVERSIDAD NACIONAL DE EDUCACIÓN A DISTANCIA
 (UNED) c/ Bravo Murillo, 38, 28015-MADRID-, con la finalidad de mantener el contacto con usted. La base jurídica que legitima este tratamiento, será su consentimiento, el interés legítimo o la necesidad para gestionar una relación contractual o similar. En
 cualquier momento podrá ejercer sus derechos de acceso, rectificación, supresión, oposición, limitación al tratamiento o portabilidad de los datos, ante la UNED,
<a href="https://www.uned.es/dpj">Oficina de Protección de datos</a>, o a través de la
<a href="https://sede.uned.es/">Sede electrónica</a> de la Universidad. </div>
<div style="font-size: 9pt; color: #939598; font-family: 'Arial',sans-serif;">Para más información visite nuestra
<a href="https://descargas.uned.es/publico/pdf/Politica_privacidad_UNED.pdf">Política de Privacidad</a>.
</div>
</body>
</html>