PivApplet icon indicating copy to clipboard operation
PivApplet copied to clipboard

ATR 3B80800101 is too generic

Open dengert opened this issue 1 year ago • 0 comments

Using the ATR of 3B80800101 is so generic, that it can lead to problems because at least one other PIV card is reported to use the same ATR. "PIVKey uTrust (01) ISO 14443 Type B without historical bytes".

This has showed up in: https://github.com/OpenSC/OpenSC/pull/2872 only works when run within the OpenSC CI script. Other test environments may have similar problems.

The ATR appears in https://github.com/arekinath/PivApplet/blob/master/test/jcardsim.cfg#L3

Suggested ATR: 3B 8A 80 01 53 50 69 76 41 70 70 6C 65 74 2B This includes 10 bytes historical bytes with Category indicator byte: 0x53 (proprietary format), "PivApplet" and TCK=0x2B

Also see: https://github.com/dengert/OpenSC/tree/generic-atr which also tries to get around the issue.

Since 3B 8X 80 01 (where X is number of historical bytes) is also use by PC/SC to when using card from NFC to there maybe other options for a less generic ATR.

Also see: https://smartcard-atr.apdu.fr/parse?ATR=3B80800101 https://smartcard-atr.apdu.fr/parse?ATR=3B8A8001535069764170706C65742B

@Jakuje

dengert avatar Sep 30 '23 19:09 dengert