FIDO2Applet: Unable to Authenticate from Android with CTAP1/U2F setup

Hi developer. Thanks for your nice applet. I am trying to setup your applet on a JCOP 3.0.4 javacard to make it work as a Yubikey alternative. The application works great on my Dell laptop that has intergrated PC/SC reader (both contated and contactless) from Broadcom. However, I am encountering difficulties in getting it to work with my Huawei phone with both hwsecurity and Google Play Service.

I have read through the manual about how to properly install attentsion cert. My params set for the applet is

a900f504f50505061820071906000818200918fe0a1904000b190400

And I did successfully installed the cert with the python script in the repo root.

Version: 3 (0x2)
Certificate Serial Number: 1.3454903698048497e+47 (0x1791633232a62800000000000000000000000000)
Signature Algorithm: ecdsa-with-sha256
Issuer: CN=AuthCA,O=ACME
Validity
Not Before: 2024-12-21T01:27:14
Not After: 2034-12-20T01:27:14
Subject: CN=FIDO2Applet,OU=Authenticator Attestation,O=ACME,C=US
Subject Public Key Info:
Type: ECC
Public-Key: (256 bit)
pub:
04:ff:15:9f:0d:31:42:7f:0d:f5:39:0b:da:31:d3:6e:93:32:
2d:56:bf:cc:7e:f0:76:a8:1c:18:ec:57:0a:98:55:95:99:b3:
27:9c:f3:b1:da:45:1a:19:d0:ff:3f:92:f9:7c:33:b4:c9:74:
c1:ea:9a:58:6f:73:e5:ea:b4:cd:53
Curve: secp256r1
X509v3 extensions:
X509v3 Basic Constraints:
CA: FALSE
Signature Algorithm: ecdsa-with-sha256
30:44:02:20:2a:91:15:8e:df:c4:98:aa:a3:70:98:f9:01:d2:
08:2a:4e:f5:4e:32:fc:a2:54:3e:9c:1b:e3:ae:7c:e9:c1:21:
02:20:29:3e:f8:63:01:54:4b:7e:09:8e:f0:7f:a7:be:2d:6a:
11:0c:76:49:9d:73:e0:ea:1f:41:0e:1c:31:fe:09:42
Fingerprint:
MD5:
69:77:05:c2:ac:db:d9:3c:4d:36:64:18:31:f9:80:db
SHA1:
57:cf:c4:32:52:7f:05:53:8d:70:ad:46:0d:d4:0a:a2:8f:51:
77:c7
SHA256:
23:cc:7e:e1:48:5f:9a:77:53:cd:30:4d:fd:68:42:9b:b2:41:
65:a2:21:e7:11:b2:48:6e:6e:91:a7:6c:0b:35
Subject key identifier:
37:59:f0:f6:da:25:72:21:5d:70:9d:07:b9:7b:a3:cc:fc:5f:
a3:80

(Copy from Yubico demo website after authicated from my laptop)

When I’m trying to authicate with the card on my phone, things gets tricky: Using microsoft edge browser(wake google play service passkey page), the result is the same as #35 . Using huawei vendor browser(wake hwsecurity passkey page), the result is The relying party ID is not a registrable domain suffix of, nor equal to the current domain

Tested with both Yubico demo website and webauthn.io, result are the same. However, with the same test website and my Yubikey 5 NFC, I did successfully setup the FIDO2 with ONLY hwsecurity NFC key page, and I did notice a big difference: System prompted for the security PIN, which didn’t occur when I’m using the applet. Looking forward to your reply on how to diagnoise the issue.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 28 (12 by maintainers)

Most upvoted comments

It turns out that it’s fully HUAWEI’s fault. Recently I got a XiaoMi 13 Ultra with Google Services built in and it just works immediately. Maybe it’s time to warn that in the README or so.

Yeah I understand. Probably it’s time to swap my phone to another brand that know what the security really means. Meanwhile, I do like to struggle a little bit. See, when register the Yubikey5 with my laptop and my phone, one difference stood out:Yubikey constantly ask for the PIN, and the applet on the other hand, doesn’t need it even after I set it.(Only with this site, Other application that register passkey works fine) By compare metadata on the test website, I noticed that Yubikey has UV: True in it where the applet result in False, and I assume that it means Always Require PIN or something similar. Is there a way to enable it on the applet? Maybe we can narrow down the problem.