I am trying to digitally sign document using the smart card eSign application. It is a national ID card, and I am following ICAO 9303
and TR-03110
specifications. If I am not mistaken, before selecting the eSign
application I should perform Terminal Authentication
as Signature Terminal
beforehand.
In ICAO 9303
it is stated:
The following sequence of commands SHALL be used with secure messaging to implement Terminal Authentication:
MSE:Set DST
PSO:Verify Certificate
MSE:Set AT
Get Challenge
External Authenticate
Steps 1 and 2 are repeated for every CV certificate to be verified (CVCA Link Certificates, DV Certificate, Terminal Certificate).
To Perform MSE:Set DST
the following APDU
should be used:
INS - 0x22
P1/P2 - 0x81B6
Data - 0x83 Reference of a public key, ISO 8859-1 encoded name of the public key to be set
It is the Data
part I do not understand. What exactly do I need to provide there? How do I find the public key or its name?