CryptoCertum 3.6 card support
Maintainer antworten meist innerhalb von 6 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
Rechercherichtung
Start by reading card-starcos.c and comparing its existing Starcos 3.5 ATR and eSign AID handling with the ATR and AIDs in this issue. Re-run the reported pkcs15-tool command with the explicit Starcos driver and AID as a baseline. Done means OpenSC recognizes the CryptoCertum 3.6 card and can handle the reported eSign application.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Hi, I have a CryptoCertum 3.6 card from Certum that doesn't seem to be recognized by OpenSC 0.26.1.
The ATR of the card is 3b 7f 96 00 00 80 31 80 58 43 65 72 74 75 6d 30 31 82 90 00.
The card has two "profiles" in the Certum terminology:
- The "Secure profile":
- Pin locked, it requires a PUK provided bu Certum to unlock
- Apparently preloaded with 5 RSA 3072 and 5 ECC P-384 keys (according to the data displayed by the Certum diagnostic tool)
- As I understand this profile is expected to handle eIDAS qualified certificates
- The "Common profile":
- Not initialized when received, the PIN/PUK can be set freely upon initialization
- Certificates and privates keys can be imported from a PKCS#12 file. I haven't figured out how to generate a key pair.
The PIN/PUK of the two profiles are independent so I guess each profile is mapped to a different application on the card.
I traced the USB packets with USBPcap and Wireshark when running the Certum diagnostic tool and signing with signtool (using a key loaded on the common profile). This revealed two application AIDs:
a0 00 00 01 67 45 53 49 47 4e(eGK-ESIGN)a0 00 00 01 67 45 53 49 47 4f(eSign) -> this one was selected when signing with signtool
I assume it's a Starcos card. OpenSC supports the version 3.5, but card-starcos.c doesn't list the ATR for the 3.6 card and checks a different AID for the eSign application (a0 00 00 02 45 53 69 67 6e).
I ran pkcs15-tool with the driver and AID set explicitely but it didn't work:
$ OPENSC_DRIVER=starcos pkcs15-tool --dump --aid a000000167455349474f
Using reader with a card: ACS ACR40U ICC Reader 0
Connecting to card in reader ACS ACR40U ICC Reader 0...
Failed to connect to card: Card is invalid or cannot be handled
Please let me know if I can provide any relevant information.
- Vorherrschende Sprache
- C
- Sterne
- 3.1k
- Forks
- 858
- Ø Merge
- 7 T. 18 Std.
- Gemergte PRs (30 T.)
- 27
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus OpenSC/OpenSC
-
minidriver: ECDSA signing via CNG fails with SCARD_E_UNSUPPORTED_FEATURE since abce0979dEvtl. vergeben @craftzbay hat das heute übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 22/100
OpenSC/OpenSC#3916 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 6 Tagen
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
OpenSC/OpenSC#3912 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 6 Tagen
-
epass2003: SM response with `87 81 01` fails to decode since 5ebb04ded (0.26.1 accepted it)Evtl. vergeben @frankmorgner hat das vor 2 Tagen übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 52/100
OpenSC/OpenSC#3900 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 6 Tagen
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 62/100
OpenSC/OpenSC#3893 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 6 Tagen
-
Feitian ePass2003 seems to not work on Linux, againEvtl. vergeben @craftzbay hat das vor 12 Tagen übernommen. Offenbug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 18/100
OpenSC/OpenSC#3878 · 10 Kommentare ·
Maintainer antworten meist innerhalb von 6 Tagen
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
FujiNetWIFI/fujinet-firmware#2261 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
kivy/python-for-android#3405 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Nmap
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
area/infrared type/bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
DarkFlippers/unleashed-firmware#1201 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
pocoproject/poco#5626 ·
Maintainer antworten meist innerhalb von 2 Tagen