<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>54612</bug_id>
          
          <creation_ts>2025-06-02 17:30:03 +0300</creation_ts>
          <short_desc>Ошибка при подписании документа цифровой подписью</short_desc>
          <delta_ts>2025-06-02 17:30:03 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>podofo</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Богдан Богуславский">boguslavskijbj</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>266301</commentid>
    <comment_count>0</comment_count>
    <who name="Богдан Богуславский">boguslavskijbj</who>
    <bug_when>2025-06-02 17:30:03 +0300</bug_when>
    <thetext>Стенды:
ALT Workstation 11.0 (Обновленный до Sisyphus)
ALT Workstation K 11.0 (Обновленный до Sisyphus)
ALT Server 11.0 (Обновленный до Sisyphus)

Версия пакета: 
podofo-0.10.4-alt1.x86_64

Шаги воспроизведения:
1. Сгенерировать сертификат и приватный ключ:
$ openssl req -new -x509 -days 999 -nodes -out test-cert.pem -keyout test-key.pem -nodes -subj &quot;/C=RU/ST=Moscow/L=Moscow/O=Test/OU=Test/CN=Test&quot;
2. Подписать документ:
$ podofosign -in test.pdf -cert test-cert.pem -pkey test-key.pem -out test_signed.pdf

Ожидаемый результат: успешное подписание документа

Реальный результат:
ERROR: An error ocurred during processing the pdf file
PdfErrorCode::InvalidHandle, An invalid handle was passed or returned, but initialized data was expected.
Callstack:t#0 Error Source: main/PdfSignature.cpp(71)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>