Closed Bug 1722306 Opened 5 years ago Closed 1 year ago

osclientcerts: implement RSA-PSS fallback for tokens that don't support it

Categories

(Core :: Security: PSM, enhancement, P1)

Firefox 90
enhancement

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: pros, Assigned: keeler)

References

(Blocks 1 open bug)

Details

(Whiteboard: [psm-assigned])

Attachments

(7 files, 3 external files, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0

Steps to reproduce:

We have an issue with Firefox 90.0.2 on macOS (in this case 11.5, Big Sur) where we are encountering failed smartcard authentications. During the authentication step, Firefox displays the 'certificate selection' dialog but no 'PIN code request' dialog.
Authentication succeeds if we use the Chrome browser on this site with the same smartcard.

We also see the same problem on Windows, and again, Chrome works OK.

Actual results:

Authentication fails

Expected results:

A supported algorithm should be selected

Errors from the macOS Console

macOS Concole log from successful Authentication using Chrome

The Bugbug bot thinks this bug should belong to the 'Core::Security: PSM' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Security: PSM
Product: Firefox → Core

What version of TLS are you negotiating when you connect to the site? Does it work if you restrict Firefox or the site to using TLS 1.2?

Flags: needinfo?(pros)

The connection is using TLS 1.2.

Flags: needinfo?(pros)
Flags: needinfo?(pros)
Flags: needinfo?(pros)
Attachment #9237670 - Attachment description: Nightly-20210818_Auth-Succed_Log.txt → Nightly-20210818_Auth-Succeed_Log.txt
Attachment #9237670 - Attachment filename: Nightly-20210818_Auth-Succed_Log.txt → Nightly-20210818_Auth-Succeed_Log.txt

Hi Dana.

I have just tested the version you sent and it works OK on macOS Catalina. Tokendriver (osclientcerts=true) and our PKCS#11 module (osclientcerts=false) are both OK. I have uploaded log files from the Nightly version you asked me to test and also one from Firefox 91esr for comparison.

Thanks.

Flags: needinfo?(dkeeler)

This was previously attempted in bug 1658042, but the library function that
this relies on (SecKeyIsAlgorithmSupported) was causing OS dialogs to appear on
our test machines, so it wasn't a viable option. Something seems to have
changed in the meantime (perhaps these dialogs were a bug in macOS?), and now
the function works as expected without dialogs.

Assignee: nobody → dkeeler
Severity: -- → S3
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(dkeeler)
Priority: -- → P1
Whiteboard: [psm-assigned]
Pushed by dkeeler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0b97742fcc62 osclientcerts: differentiate between RSA keys that support RSA-PSS and those that do not on macOS r=rmf
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch

I had updated Firefox nightly yesterday, and all was fine, but this morning I updated Firefox Nightly and cannot seem to get out of a loop of popups saying "Firefox Nightly wants to export your key ... from your keychain."

I will add a couple of pictures of the popup.

I'm on MacOS Catalina version 10.15.7 (19H1323) -- so up to date for Catalina.

Attached image IMG_9076.jpeg —
Attached image IMG_9075.jpeg —

Backed out for causing UI prompts on macOS pre-Big Sur.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 94 Branch → ---

Just FYI that I had to delete my previous copy of Firefox Nightly and reinstall it using https://www.mozilla.org/en-US/firefox/channel/desktop/
Now Firefox Nightly is working for me again.

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:keeler, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(dkeeler)
Flags: needinfo?(bugs)

This bug is blocked on a platform issue.

Flags: needinfo?(dkeeler)
Flags: needinfo?(bugs)
Whiteboard: [psm-assigned] → [psm-assigned][psm-blocked]

Hi Dana. Firefox 94.0.1 still has this problem (tested on on macOS Big Sur). Can you let me know what the situation is with this please. Can a definitive solution be found for this issue? Thanks.

This bug is blocked on a platform (i.e. macOS) issue. In the meantime, you could remove the RSA-PSS signature schemes from the server's certificate request message.

Hi,
Is someone can give me the instructions to remove the RSA-PSS signature schemes from the server's certificate request message please ?
Thxs

Attachment #9238776 - Attachment is obsolete: true
Regressions: 1729753
Assignee: dkeeler → nobody
Priority: P1 → P3
Summary: Authentication fails before selecting supported algorithm → osclientcerts: RSA-PSS detection for macOS
Whiteboard: [psm-assigned][psm-blocked] → [psm-blocked]
Assignee: nobody → dkeeler
Severity: S3 → N/A
Type: defect → enhancement
Depends on: 1813930
Priority: P3 → P1
Summary: osclientcerts: RSA-PSS detection for macOS → osclientcerts: implement RSA-PSS fallback for tokens that don't support it
Whiteboard: [psm-blocked] → [psm-assigned]
Pushed by dkeeler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/752e2c2da4e2 osclientcerts: implement rsa-pss fallback on macos when tokens don't support it r=jschanck https://hg.mozilla.org/integration/autoland/rev/953bc51c898e ipcclientcerts: implement rsa-pss fallback for tokens that don't support it r=jschanck https://hg.mozilla.org/integration/autoland/rev/a7aac4ce7cb7 rsclientcerts: remove SlotType distinction r=jschanck
Status: REOPENED → RESOLVED
Closed: 5 years ago → 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
Duplicate of this bug: 1771274
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: