Interacting with server side files locally #4649
Unanswered
aathertone
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Basic Problem to Solve
Assumptions
Why Not Download and Re-upload?
While downloading and re-uploading the file would be simpler, this is not an option due to constraints set by my boss.
Current Approach and Understanding
Key Insights
Desktop App Solution
To work around the limitations of web access to certificates, I've decided to build a desktop app using WinUI 3 and WebView2. The desktop app will load the website, providing a bridge to access the certificates securely.
Detailed Plan
Load Website in Desktop App:
Endpoint for PDF Retrieval:
PDF Handling:
Digital Signature with CAC Card:
pkcs.dll
to interact with the smartcard.Uploading Signed PDF:
Technical Steps
JavaScript in WebView2 to Fetch PDF:
Invoke JavaScript from WinUI 3 App:
Handle PDF Content in WinUI 3:
pkcs.dll
to sign the PDF.Upload Signed PDF:
Example Code for Signing and Uploading
So I dropped my thoughts into chatgptizzle before bothering the world but I feel like there are shortcomings in my thought process and what Ol' gipity has "helped" with (or what it 💩 out)
I was looking to get some ideas please 😅
Beta Was this translation helpful? Give feedback.
All reactions