passforios icon indicating copy to clipboard operation
passforios copied to clipboard

using yubikey throws error

Open timschwarzbrunn opened this issue 1 year ago • 10 comments

Hi, when I try to use my YubiKey 5C NFC with this app (version 0.14.0) on my iPhone SE 2020 (iOS 17.1, previously also tried and reproduced this issue on iOS 16.1) I cannot decrypt my passwords. In the settings I set the PGP Key only to YubiKey (it then still states "Not Set + YubiKey"). Every time when I try to decrypt I get one of these two messages and afterwards the app crashes.

Error 1: #Error Domain=com.yubico Code =25985 "Status error 0x6581 returned by the key."

Error 2: #Error Domain=NFCError Code=102 "Tag response error / no response" UserInfo={NSLocalizedDescription=Tag response error / no response, NSUnderlyingError=0×283371dd0 {Error Domain=nfcd Code=29 "Tag Error" UserInfo=INSLocalizedDescription=Tag Error, NSUnderlyingError=0×283373210 {Error Domain=com.apple.nfstack Code=20 "No response from tag" UserInfo={NSLocalizedDescription=No response from tag}}}}}#

On general, the app detects the YubiKey since I get an error message when I enter the wrong pin and the app does also not crash in this case. But when I enter the right pin one of the two errors above occur and the app crashes. Has anybody had the same issue?

timschwarzbrunn avatar Nov 06 '23 16:11 timschwarzbrunn

Same issue here on iOS 17.1.

Kernald avatar Nov 07 '23 05:11 Kernald

I just migrated from Android to iOS (17.1) and am seeing the same issue - but only on some of my passwords, most decrypt fine.

JehTeh avatar Nov 11 '23 21:11 JehTeh

I'm on iOS 17.1.1 with YubiKey 5 NFC, I don't have this issue.

ak1394 avatar Nov 27 '23 21:11 ak1394

Still have the issue on 17.1.1, on an iPhone 15 Pro.

Kernald avatar Nov 27 '23 23:11 Kernald

Yep, I have this problem too. iOS 17.1, iphone 15 Pro Max iOS 17.2, Pass v. 0.14.0, YubiKey 5 NFC Firmware version: 5.4.3

dannyob avatar Dec 23 '23 04:12 dannyob

Actually, it worked after a reboot(!)

dannyob avatar Dec 23 '23 04:12 dannyob

...and then stopped working in the same way. Sigh!

dannyob avatar Dec 23 '23 07:12 dannyob

iOS 17.2.1 on an iPhone 15 Pro. I'm not sure what the specific error is (happy to provide logs if you can tell me where they are), but the app is either not collecting my Yubikey pin correctly or is not validating it correctly. The Yubikey is definitely registering the attempt as a failed one, as I have had to unlock the key twice testing this. The Yubikey doesn't seem to work at all when plugged into the phone's USB-C port.

crawfordlong avatar Jan 15 '24 16:01 crawfordlong

Same issue on iOS 17.3 on an iPhone 11

l0u1sg avatar Feb 10 '24 15:02 l0u1sg

Same issue on iOS 17.5 Beta 4

codebam avatar May 01 '24 20:05 codebam