Implement PKCS8 import/export of ECDSA keys for WebCrypto API
Categories
(Core :: DOM: Web Crypto, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox93 | --- | fixed |
People
(Reporter: simon.koelsch, Assigned: christoph-wa)
References
(Blocks 1 open bug)
Details
(Whiteboard: [domsecurity-backlog2])
Attachments
(2 files)
Comment 1•10 years ago
|
||
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
Updated•10 years ago
|
Updated•10 years ago
|
Updated•10 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Comment 4•8 years ago
|
||
Updated•6 years ago
|
Just to keep an eye on:
Please see documentation about webCrypto:
https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto
And statement:
Storing keys
CryptoKey objects can be stored using the structured clone algorithm, meaning that you can store and retrieve them using standard web storage APIs. The specification expects that most developers will use the IndexedDB API to store CryptoKey objects.
However storing private key of ECDH into IndexedDB:
store.put({id:2, keys: keyPair.privateKey});
throws this exception:
DataCloneError: The object could not be cloned.
Checked with
Firefox: 72.0beta
and Firefox: 71.0 (64 bits)
Do you know any workaround for this issue before this bug will be fixed?
Assignee | ||
Comment 8•5 years ago
|
||
Comment hidden (advocacy) |
Comment 10•5 years ago
|
||
Christoph are you waiting for someone to review this?
Assignee | ||
Comment 11•5 years ago
|
||
Yes, however I noticed that nss is not developed within mozilla-central. I haven't gotten around to creating a separate patch yet.
Or is it not a problem to submit the nss part also via phabricator?
Comment 12•5 years ago
|
||
Hello!
I hope you are doing great!
Are there any updates about this?
We are not supporting Firefox for one of our products because of this issue :/
Thanks!
Comment 13•5 years ago
|
||
Adding NI since the question in comment 11 seems to have been missed.
Comment 14•5 years ago
|
||
I don't know the answer to that question, maybe Dana can take a look at this?
![]() |
||
Comment 15•5 years ago
|
||
(In reply to Christoph Walcher from comment #11)
Yes, however I noticed that nss is not developed within mozilla-central. I haven't gotten around to creating a separate patch yet.
Or is it not a problem to submit the nss part also via phabricator?
Please open a new bug in NSS :: Libraries and submit the patch via phabricator.
Updated•5 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment hidden (advocacy) |
Updated•4 years ago
|
Updated•4 years ago
|
Comment 17•4 years ago
|
||
Comment 18•4 years ago
|
||
bugherder |
Comment 20•4 years ago
|
||
Had this during nightly builds today 😀
Firefox 92.0 (Linux x86_64) Learning > Firefox ECDH/ECDSA private key structured clone canary,
if this fails we can start storing ECDH/ECDSA private keys in indexedb on Firefox
FAILED: Mozilla seems to have implemented structured cloning for ECDH and ECDSA private keys eventually!
Expected: true
Actual: false
@webpack:///./src-test/learning/browser/firefox.ts?:58:20
Thanks for the effort.
Description
•