Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eGK G2 egk-tool read error #1451

Closed
RBEGamer opened this issue Aug 20, 2018 · 3 comments
Closed

eGK G2 egk-tool read error #1451

RBEGamer opened this issue Aug 20, 2018 · 3 comments

Comments

@RBEGamer
Copy link

Problem Description

Since this week the new eGK Cards will be distributed to the citizens. The card is the new generatation marked with "G2". The egk-tool command cant display the base data of the card holder.

Proposed Resolution

Steps to reproduce

  • Insert a G2 eGK and run the egk-tool command. Tested under Ubuntu 16.4 and Mac OSX 10.13

Test

EGK G1:
$ egk-tool --pd
<UC_PersoenlicheVersichertendatenXML xmlns="http://ws.gematik.de/fa/vsdm/vsd/v5.2" CDM_VERSION="5.2.0"><Versicherten_ID>...

EGK G2:
$ egk-tool --pd
-- no output --

Tested with various G1 and G2 Cards.

@frankmorgner
Copy link
Member

please add a debug log with debug = 3 in opensc.conf

@RBEGamer
Copy link
Author

RBEGamer commented Aug 20, 2018

Here are the first information:
$ opensc-tool -f
Using reader with a card: Generic Smart Card Reader Interface
SELECT FILE failed: Incorrect parameters in APDU

$ opensc-tool --atr
3b:d3:96:ff:81:b1:fe:45:1f:07:80:81:05:2d

$ opensc-tool --name
German ID card (neuer Personalausweis, nPA)

seems to that the egk g2 will be loaded as German ID Card

$ opensc-tool -l

Detected readers (pcsc)

Nr. Card Features Name
0 Yes Generic Smart Card Reader Interface

I will provide more as soon as possible

@frankmorgner
Copy link
Member

This is fixed upstream.

Editing the opensc.conf to something like the example below should also work:

app default {
	card_atr 3b:d3:96:ff:81:b1:fe:45:1f:07:80:81:05:2d {
		type = 7002;
		driver = "starcos";
		name = "STARCOS";
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants