Open Bug 1133698 Opened 5 years ago Updated 7 months ago

Implement PKCS8 import/export of ECDSA keys for WebCrypto API

Categories

(Core :: DOM: Web Crypto, defect, P3)

38 Branch
defect

Tracking

()

People

(Reporter: simon.koelsch, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [domsecurity-backlog2])

Attachments

(1 file)

Firefox Nightly Build (38.0a1 (2015-02-16))
User Agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Firefox/38.0"

Export of private or public ECDSA P-256 key is not working and a DOMException [NotSupportedError: "Operation is not supported"] is thrown.

The result should be a jwk object, containing the key.
Bug 1025230 and 1034854 suggest this should work.

The attached example can be pasted directly to the JS console.
I tried to verify the code and it is working in Chrome (Version 42.0.2306.0 canary (64-bit)).

Maybe it is related to Bug 1106087 (WebCrypto exportKey fails to export newly generated ECDH private key.).
Mistakenly filed against Firefox 38 and should be instead 38 Branch. Sorry for the spam. dkl
Version: Firefox 38 → 38 Branch
This is a problem in 39.0a2 as well. It's a blocker for us.
Bug 1158296 just landed, it implements SPKI export for ECDSA. PKCS8 export is missing and needs to be implemented. Shouldn't be too hard after we fixed PKCS8 export for ECDH, was working on that yesterday.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Mac OS X → All
Hardware: x86_64 → All
Summary: WebCrypto export of ECDSA keys (private/public) fails → Implement export of ECDSA private keys for WebCrypto API
Component: Security → DOM: Security
Product: Firefox → Core
Summary: Implement export of ECDSA private keys for WebCrypto API → Implement PKCS8 import/export of ECDSA keys for WebCrypto API
Component: DOM: Security → Security
Component: Security → DOM: Security
Priority: -- → P3
Whiteboard: [domsecurity-backlog2]
Just run into this bug. Since bug 1295121 is fixed I wonder what the status is?
I am still unable to export private keys for ECDSA in pkcs8 format.
Is there any progress in this?
Thank you
Component: DOM: Security → DOM: Web Crypto
You need to log in before you can comment on or make changes to this bug.