I want to read data from a smartcard, but at the same time I need to make sure that the card is valid. The idea is that I want to receive on my server the card id and a signature of the card witch I can check if it is valid or not. I do not have access to any private keys the card provides.
I noticed some efs like card_certificate, but I'm not sure in what structure that binary has.