1 Environment variables
Martin Paljak edited this page 2025-12-18 07:35:08 +02:00

Environment variables

GlobalPlatformPro supports several environment variables to configure its behavior:

Variable Description
GP_READER Name or part of the name of the PC/SC reader to use.
GP_READER_IGNORE Name or part of the name of the PC/SC reader to ignore.
GP_KEY Hex encoded key content/value.
GP_KEY_ENC Hex encoded ENC key value.
GP_KEY_MAC Hex encoded MAC key value.
GP_KEY_DEK Hex encoded DEK key value.
GP_KEY_KDF Key diversification format/template.
GP_KEY_KDD Key Diversification Data (override).
GP_KEY_VER Key version.
GP_AID Default AID to connect to.
GP_TRACE Set to any value to enable trace logging (requires -d).
GP_PCSC_RESET Set to true to reset the card on disconnect.
GP_PCSC_EXCLUSIVE Set to true to use exclusive access to the reader.
GP_PCSC_TRANSACT Set to false to disable transaction usage (default is true).
GLOBALPLATFORMPRO_SCP03_BUGGYCOUNTERWORKAROUND Set to true to enable workaround for buggy SCP03 implementations.