Closed
Bug 1088995
Opened 12 years ago
Closed 11 years ago
Add debug messages to get the public and private key used to create FxA assertions
Categories
(Firefox :: Firefox Accounts, defect)
Firefox
Firefox Accounts
Tracking
()
RESOLVED
FIXED
People
(Reporter: ckarlof, Assigned: spenrose)
References
Details
This would be to help debug Bug 1059787, where we are observing invalid FxA assertions created on FxOS, but not on Desktop.
| Reporter | ||
Comment 1•12 years ago
|
||
Sam, do you think you might be able to help us with this?
| Assignee | ||
Comment 2•12 years ago
|
||
(In reply to Chris Karlof [:ckarlof] from comment #1)
> Sam, do you think you might be able to help us with this?
Sure. I think a dedicated pref is called for, given that we're printing private keys.
Assignee: nobody → spenrose
| Assignee | ||
Comment 3•12 years ago
|
||
Unassigning myself due to low success-probability/work-entailed ratio. Please ping if you want me to try. Following up in bug 1059787 .
Notes: the private key does not reach JS, because the people who wrote this code don't want you to be able to print it. We kick off its generation at [1]. In #security, I was pointed at a routine for exporting a buffer with the private key encrypted [2]. It would not be simple for me to determine where and how to plug that into NSS; I got as far as [3].
[1] https://mxr.mozilla.org/mozilla-central/source/toolkit/identity/jwcrypto.jsm#36
[2] https://bugzilla.mozilla.org/page.cgi?id=splinter.html&bug=1012549&attachment=8510787
-> KeyStore.cpp ll. 366-485
[3] https://mxr.mozilla.org/mozilla-central/source/security/nss/lib/pk11wrap/pk11akey.c#1021
Assignee: spenrose → nobody
| Assignee | ||
Comment 4•11 years ago
|
||
I have a patch that prints the public keys, and a patch that prints the private keys but won't build on device.
Assignee: nobody → spenrose
| Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Sam Penrose from comment #4)
> I have a patch that prints the public keys, and a patch that prints the
> private keys but won't build on device.
The latter patch now builds. Closing bug; will reopen if we decide to land this code.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Core → Firefox
You need to log in
before you can comment on or make changes to this bug.
Description
•