This command generates and provides the card basic. This command should be used after each GET MANUFACTURER and before the OPEN SECURE CHANNEL command in order to securely get the card ephemeral public key for the channel encryption key exchange.
Table of Contents
Toggle
def get_card_certificate(nonce: int):
card.get_card_certificate(nonce)
# For example:
import secrets
random_number = secrets.randbits(64)
get_card_certificate(random_number)
The following table outlines the components of the Application Protocol Data Unit (APDU).
Field | Description | Value |
CLA | This field specifies the class of the instruction. | 0x80 |
INS | This field specifies the particular command or operation that the smart card or secure element should execute. | 0xF8 |
P1 | First parameter of the instruction that specifies the details about the operation being requested. | 0x00 |
P2 | First parameter of the instruction that specifies additional details about the operation being requested. | 0x00 |
Data | Key data | 8 bytes random nonce |
On success: The card basic
Throws 0x6984 if the given data nonce length is not 64 bits (8 bytes).