Skip to content

Conversation

@Max-7
Copy link
Contributor

@Max-7 Max-7 commented Nov 17, 2025

To purely check the design part (how it looks), it's possible to set (window as any).TESTING_PKI = true somwhere at the top of the main.ts, which will switch the PKI implementation to the mock one. Usefull for e2e tests (since PKI is not available on web) or quickly checking the design, but of course, not enough to see if it actually works. It does help to check how some errors are displayed as they can be difficult to generate manually.

It can only be properly tested on Windows right now.

Since certificates are needed for that, a nice little script if provided. Launch a Powershell terminal, go to parsec-cloud\libparsec\crates\platform_pki\examples, and run .\init_windows_credstore.ps1. Just accept to add the certificate, and when you're killing the script, it will automatically remove the certificates for you (if you accept). You may need to provide specific permissions to be able to exec the script (something about Exec-Policy).

Then run Electron: the smardcard should be available as a mean to authenticate, and the PKI tab in invitations should be visible.

@Max-7 Max-7 changed the title Ms pki admin [MS] Use pki bindings instead of mocks Nov 17, 2025
@Max-7 Max-7 force-pushed the ms-pki-admin branch 7 times, most recently from 66070f6 to 55de935 Compare November 25, 2025 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants