mssun / passforios

Pass for iOS - an iOS client compatible with Pass command line application.
https://mssun.github.io/passforios
MIT License
1.52k stars 103 forks source link

using yubikey throws error #629

Open timschwarzbrunn opened 1 year ago

timschwarzbrunn commented 1 year ago

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?

Kernald commented 1 year ago

Same issue here on iOS 17.1.

JehTeh commented 1 year ago

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.

ak1394 commented 11 months ago

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

Kernald commented 11 months ago

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

dannyob commented 10 months ago

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 commented 10 months ago

Actually, it worked after a reboot(!)

dannyob commented 10 months ago

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

crawfordlong commented 10 months ago

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.

l0u1sg commented 9 months ago

Same issue on iOS 17.3 on an iPhone 11

codebam commented 6 months ago

Same issue on iOS 17.5 Beta 4