mirror of
https://github.com/laurivosandi/certidude.git
synced 2026-04-27 09:35:53 +03:00
[GH-ISSUE #29] Generate bundle secret using WebCrypto #22
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/certidude-laurivosandi#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @laurivosandi on GitHub (Feb 2, 2017).
Original GitHub issue: https://github.com/laurivosandi/certidude/issues/29
Currently if .ovpn or .p12 bundle is downloaded the RSA private key is generated on the server and served for the web browser.
To do it technically correctly the private key would have to be generated on the client side. Using WebCrypto and pki.js we should be able to generate RSA keypair and bundle file in the browser and have it signed by server since the user is already logged in.
The .ovpn could be generated using JavaScript blobs.
@laurivosandi commented on GitHub (Feb 25, 2018):
Used https://github.com/digitalbazaar/forge instead. PKCS#12 is also handled there.