https://bugs.documentfoundation.org/show_bug.cgi?id=170726

            Bug ID: 170726
           Summary: Digital signing in LibreOffice using PIV smart card
                    (YubiKey) fails with “smart card cannot perform
                    requested operation”
           Product: LibreOffice
           Version: 3.3.4 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
I am trying to digitally sign a LibreOffice document using a hardware security
key (YubiKey-like device) via PIV smart card functionality on Windows, but I am
unable to complete the signing process.

Steps to Reproduce:
Here are the steps I followed:

I created an X.509 certificate using the RSA 2048 algorithm.
I imported the certificate and private key as a PFX into the security key (PIV
slot).
I imported the corresponding public certificate into the Windows Trusted
Certificate Store.
In LibreOffice, I opened a document and navigated to:
File → Digital Signatures → Digital Signatures → Sign Document.
A Windows Security dialog appears asking me to select the smart card.
At this point, I encounter the following issue:

After selecting the smart card, Windows shows the error:
“The smart card cannot perform the requested operation or the operation
requires a different smart card.”
If I press Cancel multiple times, the certificates eventually appear in
LibreOffice.
However, even though the certificates are listed, LibreOffice does not allow me
to sign the document using the smart card.
Questions:

Does LibreOffice officially support PIV smart card–based signing on Windows?
Are there specific certificate requirements (key usage, EKU, hash algorithm,
provider type, etc.) needed for LibreOffice document signing?
Does LibreOffice rely on Windows CAPI / CNG, and are there known limitations
with smart cards or hardware keys?
Is additional configuration (LibreOffice, Windows, or middleware) required to
make this work?

Actual Results:
Cannot sign the document, The smart card request is not working properly

Expected Results:
I should be able to select certificate without clicking cancel and I should be
able to sign the document


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.8.4.2 (X86_64)
Build ID: 290daaa01b999472f0c7a3890eb6a550fd74c6df
CPU threads: 8; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster;
VCL: win
Locale: en-US (en_DE); UI: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to