Closed Bug 1133698 Opened 7 years ago Closed 3 months ago
Implement PKCS8 import/export of ECDSA keys for Web
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
Priority: -- → P3
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
Duplicate of this bug: 1434898
Component: DOM: Security → DOM: Web Crypto
Flags: needinfo?(evilpies) → needinfo?(dkeeler)
Flags: needinfo?(dkeeler) → needinfo?(christoph-wa)
Attachment #9189394 - Attachment description: Bug 1133698 - Implement PKCS8 import/export of ECDSA keys for WebCrypto API → Bug 1133698 - Implement PKCS8 import/export of ECDSA keys for WebCrypto API. r=keeler
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/autoland/rev/31ee83932e04 Implement PKCS8 import/export of ECDSA keys for WebCrypto API. r=keeler
You need to log in before you can comment on or make changes to this bug.