Closed
Bug 409091
Opened 18 years ago
Closed 18 years ago
SSL Client Auth prompt should indicate port number
Categories
(Core :: Security: PSM, defect)
Core
Security: PSM
Tracking
()
RESOLVED
FIXED
People
(Reporter: KaiE, Assigned: KaiE)
Details
Attachments
(1 file, 3 obsolete files)
|
2.34 KB,
patch
|
rrelyea
:
review+
mtschrep
:
approval1.9+
|
Details | Diff | Splinter Review |
Christina Fu reported the following usability issue:
When using Firefox session restore, multiple tabs open at the same time, more than one of them requires SSL client auth.
The browser is configured to prompt the user.
This is further complicated, because a single host runs 2 servers on different ports, and both of them require a cert.
Problem: The prompt does not show information to distinguish the different ports.
This bug requests that the server port number gets added to the display.
| Assignee | ||
Comment 1•18 years ago
|
||
Proposed solution.
I was looking for a minimal change, so we can get this in quickly.
That means, let's simply change strings, do not try to change the UI.
Note the current UI will show the server cert's CN field to the user.
I think that's not sufficient anyway, and might actually be quite confusing.
Imagine a server cert which uses SubjectAltName extensions, and the CN is something else than the hostname we are connecting to.
I think we should display both CN and the hostname we are connecting to.
I think we should always show the port number, because this code might be used for any kind of SSL connection (not just https).
The patch does the following:
If CN and hostname are identical, it will simply append the portnumber, and look like:
www.hostname.com:443
If CN and hostname are different, it will display both, like this:
what CN says (www.hostname.com:443)
| Assignee | ||
Comment 2•18 years ago
|
||
in this patch I removed some unnecessary code...
Attachment #293931 -
Attachment is obsolete: true
Attachment #293932 -
Flags: review?(rrelyea)
| Assignee | ||
Comment 3•18 years ago
|
||
Please set the approval1.9? flag on the patch once it received review. thanks.
| Assignee | ||
Comment 4•18 years ago
|
||
third attempt to attach the correct patch...
Attachment #293932 -
Attachment is obsolete: true
Attachment #293937 -
Flags: review?(rrelyea)
Attachment #293932 -
Flags: review?(rrelyea)
Comment 5•18 years ago
|
||
Comment on attachment 293937 [details] [diff] [review]
Patch v3
the patch is mostly fine, but for one minor thing -- you are referencing the freed ccn variable. We really should fix this, since it's likely to skate thorugh testing and bite us much later....
(simple solution: free ccn after your test).
Also note, it appears ccn can be NULL, strcmp would not like that;).
bob
Attachment #293937 -
Flags: review?(rrelyea) → review-
| Assignee | ||
Comment 6•18 years ago
|
||
Thanks for catching those mistakes.
I switched to a charCleaner for ccn, which will call PR_FREEIF. I checked that both PORT_Free and PR_FREEIF eventually call the same cleanup function.
I added a non-null check to protect the strcmp.
Attachment #293937 -
Attachment is obsolete: true
Attachment #296994 -
Flags: review?(rrelyea)
Comment 7•18 years ago
|
||
Comment on attachment 296994 [details] [diff] [review]
Patch v4
r+ rrelyea
Attachment #296994 -
Flags: review?(rrelyea) → review+
| Assignee | ||
Comment 8•18 years ago
|
||
Comment on attachment 296994 [details] [diff] [review]
Patch v4
requesting approval for a UI string enhancement
Attachment #296994 -
Flags: approval1.9?
Updated•18 years ago
|
Attachment #296994 -
Flags: approval1.9? → approval1.9+
| Assignee | ||
Comment 9•18 years ago
|
||
fixed
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•