Closed Bug 875188 Opened 11 years ago Closed 7 years ago

Add a variant for importPKCS12File

Categories

(Core :: Security: PSM, defect)

ARM
All
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
tracking-b2g backlog

People

(Reporter: allstars.chh, Unassigned)

References

Details

(Whiteboard: [FT:RIL][psm-backlog])

Attachments

(1 file)

Currently nsIX509CertDB.importPKCS12File will invoke some XUL dialog to get password for the PKCS12 file, but on B2G we try to avoid use XUL here.

So we need to create another variant for importPKCS12File, either
1. Add another parameter for password.
2. Dispatch some browser element (for dialog) event to Gaia and let Gaia handle the UI part for inputing password.

Please also see the previous discussing thread on dev-b2g. [1]


[1]: https://groups.google.com/forum/#!msg/mozilla.dev.b2g/YKUBFge_qxc/LQJYv9CU3YIJ
Whiteboard: RIL5/29
Whiteboard: RIL5/29 → RN5/29
Component: Libraries → Security: PSM
Product: NSS → Core
Version: trunk → Trunk
Whiteboard: RN5/29 → RN6/7
Hi, Brian
Does the new method should be in nsIX509CertDB2.idl?

From nsIX509CertDB2.idl I saw the comment
/**
 * This represents a service to access and manipulate 
 * X.509 certificates stored in a database through methods
 * not in nsIX509CertDB, which is *frozen*
 *
 */

By frozen does it we cannot modify nsIX509CertDB.idl?

Thanks
The comment is obsolete. All interfaces are unfrozen since Firefox 4.
Comment on attachment 759672 [details] [diff] [review]
Add password for importPKCS12File

Hi, Brian
Can you review this patch with additinal password parameter for importPKCS12File for me ?

Thanks
Attachment #759672 - Flags: review?(bsmith)
Hi, bsmith, review ping?
Or if the patch is wrong in somethere, feel free to tell me and cancel r?. :)
Comment on attachment 759672 [details] [diff] [review]
Add password for importPKCS12File

Canceling r? as I think for Web it should use prompt to get the password if needed.

I should try if we could create another component like NSSDialog on B2G.
Attachment #759672 - Flags: review?(brian)
Whiteboard: RN6/7
blocking-b2g: --- → 1.3+
Target Milestone: --- → 1.3 Sprint 6 - 12/6
Whiteboard: [FT:RIL]
Remove 1.3+ and Target Mile Stone for we will do this in Wifi, Bug 917102.
blocking-b2g: 1.3+ → ---
Target Milestone: 1.3 Sprint 6 - 12/6 → ---
blocking-b2g: --- → backlog
Assignee: allstars.chh → nobody
blocking-b2g: backlog → ---
This would be a great way to move towards PSM code not causing any dialogs to open.
Whiteboard: [FT:RIL] → [FT:RIL][psm-backlog]
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: