Closed Bug 1175234 Opened 10 years ago Closed 10 years ago

window.crypto.subtle.exportKey does not work for private keys

Categories

(Firefox :: Untriaged, defect)

38 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: kmt123, Unassigned)

Details

Attachments

(1 file)

Attached file firefox_bug.html
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.6.3 (KHTML, like Gecko) Version/8.0.6 Safari/600.6.3 Steps to reproduce: Load the attached file in Firefox and inspect the console. The test passes on the latest Chrome but does not pass on the latest Firefox. I am trying to generate a ECDH key and export the private key (as well as the public key) to JWK format. All other formats produce an operation not supported exception. Actual results: "key" Object { privateKey: CryptoKey, publicKey: CryptoKey } firefox_bug.html:23:4 "it failed" DOMException [OperationError: "The operation failed for an operation-specific reason" code: 0 nsresult: 0x80530020] firefox_bug.html:37:2 Expected results: key Object {publicKey: CryptoKey, privateKey: CryptoKey} firefox_bug.html:34 it passed
I just download the Firefox nightly build (41.0a1) and this test passes. It looks like it is already fixed. Thanks.
I've tested this on the latest release(42.0) and latest Nightly(45.0a1) and didn't reproduce the issue. User Agent: Mozilla/5.0 (Windows NT 6.1; rv:42.0) Gecko/20100101 Firefox/42.0 Build ID: 20151029151421 User Agent: Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0 Build ID: 20151210030212 Considering this, and the fact that the reporter says it has been fixed on Nightly(41.0a1), I will mark this issue as RESOLVED WORKSFORME.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: