Skip to content

[stable32] test: sign with pkcs12 certificate#7111

Merged
vitormattos merged 2 commits intostable32from
backport/7044/stable32
Mar 5, 2026
Merged

[stable32] test: sign with pkcs12 certificate#7111
vitormattos merged 2 commits intostable32from
backport/7044/stable32

Conversation

@backportbot-libresign
Copy link
Copy Markdown

@backportbot-libresign backportbot-libresign Bot commented Mar 5, 2026

Backport of #7044

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Add deleteUserPfx() to playwright/support/nc-provisioning.ts to send
DELETE /ocs/v2.php/apps/libresign/api/v1/account/pfx authenticated
as the target user. This ensures tests that require the certificate
creation flow always start from a clean state.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Add e2e test covering the full flow where a user signs a document
using a PKCS#12 certificate generated by herself:
- configure OpenSSL root certificate
- enable password signature method
- delete any existing PFX to guarantee the create-password step appears
- upload PDF, add signer, request signatures
- create password on first sign attempt
- sign the document with the created password
- assert document validity on the validation page

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos vitormattos force-pushed the backport/7044/stable32 branch from 97f268a to bd8567a Compare March 5, 2026 13:29
@vitormattos vitormattos marked this pull request as ready for review March 5, 2026 13:29
@vitormattos vitormattos merged commit 621de23 into stable32 Mar 5, 2026
29 of 32 checks passed
@vitormattos vitormattos deleted the backport/7044/stable32 branch March 5, 2026 13:29
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant