OPENSC.CONF(5)
๐ NAME ๐
opensc.conf โ bestie, this is the configuration file for OpenSC. It lives in the OpenSC File Formats section of the manual (section 5, iykyk). ๐
โจ DESCRIPTION โจ
Okay so here's the tea โ โ OpenSC goes hunting for its configuration data in this exact order, and whoever wins first, wins:
- command-line options
- environment variables
- Windows registry key in
HKEY_CURRENT_USER(if available) - Windows registry key in
HKEY_LOCAL_MACHINE(if available) - system-wide configuration file (
/etc/opensc.conf)
The configuration file, opensc.conf, is made of blocks, and blocks generally look like this:
key [, name...] {
block_contents
}
And block_contents is one or more block_items, where a block_item is any one of these three iconic little guys:
# comment stringkey[, name...] = value;block
At the root level, opensc.conf should contain one or more application specific configuration blocks:
app application {
block_contents
}
And application can be any of these ๐
:
filename: a configuration block for the application with that specified file path.default: the fall-back configuration block for all applications.opensc-pkcs11: configuration block for the PKCS#11 module (opensc-pkcs11.so).onepin-opensc-pkcs11: configuration block for the PKCS#11 one-PIN-module (onepin-opensc-pkcs11.so).cardmod: configuration block for Windows' minidriver (opensc-minidriver.dll).cardos-tool,cryptoflex-tool,dnie-tool,egk-tool,eidenv,gids-tool,iasecc-tool,netkey-tool,npa-tool,openpgp-tool,opensc-asn1,opensc-explorer,opensc-notify,opensc-tool,piv-tool,pkcs11-tool,pkcs15-crypt,pkcs15-init,pkcs15-tool,sc-hsm-tool,westcos-tool: configuration block for OpenSC tools.
๐ธ CONFIGURATION OPTIONS ๐ธ
debug = num;โ how much debug info to print (Default:0). Bigger number = more chaos, sorry, more debug info. ๐
The environment variable OPENSC_DEBUG overwrites this setting. Yes, overwrites. No arguing. ๐
debug_file = filename;โ the file where debug output gets written (Default:stderr). The special valuesstdoutandstderrare recognized, bestie. โจprofile_dir = filename;โ the PKCS#15 initialization/personalization profiles directory forpkcs15-init(1)(Default:/usr/share/opensc).
If this configuration value is not found on Windows, the registry key Software\OpenSC Project\OpenSC\ProfileDir gets checked instead.
disable_colors = bool;โ turns off the colors of log messages (Default:falseif attached to a console,trueotherwise). ๐จdisable_popups = bool;โ disables the pop-ups of the built-in GUI (Default:false).enable_default_driver = bool;โ enables the default card driver (Default:false). Lowkey important: the default card driver is explicitly enabled foropensc-explorer(1)andopensc-tool(1).card_drivers = name...;โ the allowlist of card drivers to load at start-up. The special valueinternal(which is the default) loads all statically linked drivers.
If you supply an unknown driver (i.e. not internal or old), you have to write a separate configuration block for that driver. There's also a special value old that loads all statically linked drivers that may be removed in the future. ๐
You can get the list of supported card driver names from the output of opensc-tool --list-drivers.
The environment variable OPENSC_DRIVER overwrites this setting.
ignored_readers = name...;โ list of readers to ignore (Default: empty). If any of the comma separated strings listed here is matched in a reader name (case sensitive, partial matching possible), that reader gets ignored by OpenSC, periodt. Useopensc-tool --list-readersto see all currently connected readers. ๐ฆreader_driver name { block_contents }โ configuration of the smart card reader driver, wherenameis one of:ctapi: see the section called "Configuration of CT-API Readers"pcsc: see the section called "Configuration of PC/SC Readers"openct: see the section called "Configuration of OpenCT Readers"cryptotokenkit: configuration block for CryptoTokenKit readers
See the section called "Configuration of Smart Card Reader Driver".
card_driver name { block_contents }โ configuration of the card driver, wherenameis one of:npa: see the section called "Configuration Options for German ID Card"dnie: see the section called "Configuration Options for DNIe"edo: see the section called "Configuration Options for Polish eID Card"eoi: see the section called "Configuration Options for Slovenian eID Card"myeid: see the section called "Configuration Options for MyEID Card"dtrust: see the section called "Configuration Options for D-Trust Signature Cards"- any other value: configuration block for an externally loaded card driver
card_atr hexstring { block_contents }โ on top of the built-in list of known cards in the card driver, you can configure a new card for the driver using thecard_atrblock. ๐
For details, see the section called "Configuration based on ATR".
disable_hw_pkcs1_padding = value;โ disables PKCS#1 v1.5 padding in HW when the card supports doing raw RSA operations. Known parameters:no: PKCS#1 v1.5 padding is enabled in HW when the card supports it.sign: PKCS#1 v1.5 padding is disabled only for signatures (PKCS#1 v1.5 type 1).decipher: PKCS#1 v1.5 padding is disabled only for decryption (PKCS#1 v1.5 type 2).both: PKCS#1 v1.5 padding is disabled both for signatures and decryption (PKCS#1 v1.5 type 1 and 2).
(Default: decipher).
openssl_config = path;โ specify an OpenSSL configuration file to be loaded into the OpenSC's library context. Ngl, this should not be needed for general operation, but it is needed if you need to configure some specifics of OpenSSL without the need to rebuild OpenSC (for example, configure and load a FIPS provider). For more info about configuring OpenSSL, seeconfig(5)andfips_config(5). (Default: empty).secure_messaging name { block_contents }โ configuration options for the secure messaging profilename:module_name = filename;โ name of external SM module (Default:libsmm-local.so).module_path = filename;โ directory with external SM module (Default:/usr/lib).
If this configuration value is not found on Windows, the registry key Software\OpenSC Project\OpenSC\SmDir gets checked.
module_data = value;โ specific data to tune the module initialization.mode = value;โ secure messaging mode. Known parameters:transmit: in this mode the procedure to securize an APDU is called by the OpenSC general APDU transmit procedure. In this mode all APDUs, except the ones filtered by the card specific procedure, are securized.acl: in this mode APDUs are securized only if needed by the ACLs of the command to be executed.
flags = value;โ secure messaging type specific flags.kmc = hexstring;โ default KMC of the GP Card Manager for the Oberthur's Java cards.ifd_serial = hexstring;โ (no extra description, it's just built different ๐ )keyset[_aid]_num_enc = value;andkeyset[_aid]_num_mac = value;โ keyset values from IAM profiles of the Gemalto IAS/ECC cards, with an optional application identifier.
framework name { block_contents }โ internal configuration options, wherenameis one of:pkcs15: see the section called "Configuration of PKCS/15 Framework"
(as written in the page: "Configuration of PKCS#15 Framework" โ keeping it exactly: pkcs15: see the section called "Configuration of PKCS#15 Framework")
pkcs11 { block_contents }โ parameters for the OpenSC PKCS11 module.
For details, see the section called "Configuration of PKCS#11".
๐ง Configuration of Smart Card Reader Driver
โญ Configuration Options for all Reader Drivers
max_send_size = num;andmax_recv_size = num;โ limit command and response sizes (Default:max_send_size = 255,max_recv_size = 256). Some Readers don't propagate their transceive capabilities correctly ๐ญ, somax_send_sizeandmax_recv_sizelet you set the limits manually โ for example, to enable extended length capabilities.enable_escape bool;โ detect reader capabilities with escape commands (wrapped APDUs withCLA=0xFFas defined by PC/SC pt. 3 and BSI TR-03119, e.g. for getting the UID, escaped PIN commands and the reader's firmware version, Default:false).
๐ Configuration of CT-API Readers
module filename { ports = nums; }โ load the specified CT-API module with the specified number of ports.
๐ณ Configuration of PC/SC Readers
connect_exclusive = bool;โ connect to reader in exclusive mode (Default:false)? This option has no effect in Windows' minidriver.disconnect_action = action;โ what to do when disconnecting from a card (SCardDisconnect). Valid values areleave,reset,unpower(Default:leave). This option has no effect in Windows' minidriver.transaction_end_action = action;โ what to do at the end of a transaction (SCardEndTransaction). Valid values areleave,reset,unpower(Default:leave). This option has no effect in Windows' minidriver.reconnect_action = action;โ what to do when reconnection to a card (SCardReconnect). Valid values areleave,reset,unpower(Default:leave). This option has no effect in Windows' minidriver.enable_pinpad = bool;โ enable pinpad if detected (PC/SC v2.0.2 Part 10, Default:true). ๐ขfixed_pinlength = num;โ some pinpad readers can only handle one exact length of the PIN ๐ค, sofixed_pinlengthsets this value so that OpenSC expands the padding to this length (Default:0, i.e. not fixed).provider_library = filename;โ use specific PC/SC provider (Default:libpcsclite.so.1).
๐ฆ Configuration of OpenCT Readers
readers = num;โ virtual readers to allocate (Default:2).
๐ณ Configuration Options for MyEID Card ๐ณ
disable_hw_pkcs1_padding = bool;โ bestie, your MyEID card can do the padding thing internally, all by itself, no cap. It wraps the data (aka the hash code) into a DigestInfo ASN.1 structure, following whatever hash algorithm you picked (and rn that's only for SHA1, okay?). Then that DigestInfo gets padded up to the RSA key modulus length using PKCS#1 v1.5, block type01h. One lil catch tho: the size of the DigestInfo must not exceed 40% of the RSA key modulus length. If that limit is giving you problems (like, say, someone needs RSA 1024 with SHA512 ๐), you can just turn this feature off. When it's off, the card driver does all the prep work itself before sending the data (hash code) over to the card. Slay.
Also! PKCS#1 v1.5 padding in HW can be globally disabled with the option disable_hw_pkcs1_padding. And here's the tea: when you use that global option to disable padding, the padding is disabled even though the MyEID-specific option doesn't turn it off. Global wins, periodt.
๐ฉ๐ช Configuration Options for German ID Card ๐ฉ๐ช
can = value;โ the German ID card is dramatic and requires the CAN to be verified before the QES PIN. Problem is, this isn't part of the PKCS#15 profile of the card, so to verify the QES PIN we lowkey need both. You can drop the CAN right here. If you don't, it'll be prompted on the command line or on the reader (depends on what your reader can do ๐ ).st_dv_certificate = filename;st_certificate = filename;st_key = filename;โ QES is only possible with a Comfort Reader (CAT-K), which holds a cryptographic key so it can authenticate itself as a signature terminal (ST). Usually we'll just use the reader's own capability to sign the data. But during development you may specify soft certificates and keys for an ST. An example PKI can be found in the example data for the German ID card emulator[1] ๐
๐ช๐ธ Configuration Options for DNIe ๐ช๐ธ
user_consent_enabled = bool;โ sets up the warning message that shows when you do a signature operation with the DNIe. Only used if compiled with--enable-dnie-ui.user_consent_app = filename;โ pick the pinentry application to use if the warning is configured to be displayed via pinentry (Default:/usr/bin/pinentry). Only used if compiled with--enable-dnie-ui.
๐ต๐ฑ Configuration Options for Polish eID Card ๐ต๐ฑ
can = value;โ CAN (Card Access Number โ a 6 digit number printed on the right bottom corner of the front side of the document) is required to establish a connection with the card. It might be overwritten by theEDO_CANenvironment variable. Currently, it is not possible to set it in any other way. ๐ญ
๐ธ๐ฎ Configuration Options for Slovenian eID Card ๐ธ๐ฎ
can = value;โ CAN (Card Access Number โ a 6 digit number printed on the right bottom corner of the front side of the document) is required to establish a connection with the card. It might be overwritten by theEOI_CANenvironment variable. And plot twist: since the CAN is also stored on the card (in encrypted form), it can be used to automatically establish a secure connection โ but only if the card is accessed over the contact interface. ๐ฆ
๐ Configuration Options for D-Trust Signature Cards ๐
can = value;โ CAN (Card Access Number โ a 6 digit number printed on the front side of the card) is required to establish a connection with the card. It might be overwritten by theDTRUST_CANenvironment variable. If you don't specify it here, the CAN will be read from a card specific cache, prompted on the card reader's PIN pad, or prompted interactively โ in this exact order:- Environment variable
DTRUST_CAN - This configuration file option
- PKCS#15 card-specific cache
- Pin pad of a PACE-capable card reader
- Environment variable
can_use_cache = bool;โ caches the CAN number of a card once the user has provided it, in the directoryfile_cache_dir. The cached CAN gets used later so we can skip that interactive prompting moment entirely. This feature is enabled by default. ๐ซถ
๐ชช Configuration Options for PIV Card ๐ชช
๐ฏ Configuration based on ATR ๐ฏ
atrmask = hexstring;โ this mask is logically AND'd with a card ATR before comparison with the ATR reference value above. Using this mask lets you identify and configure multiple ATRs as the same card model. So efficient. โจdriver = name;โ when enabled, overrides all possible settings from the card driver's built-in card configuration list.name = name;โ set the card name, for card drivers that allow it.type = num;โ lets you set the exact type of the card, used internally by the card driver. Allowed values can be found in the source code ofcards.h. ๐flags = value...;โ card flags as a hex value. Multiple values are OR'd together. Depending on the card driver, this lets you fine-tune the capabilities in the card driver for your card. Optionally, some known parameters can be specified as strings:rng: On-board random number sourcekeep_alive: request the card driver to send a "keep alive" command before each transaction, to make sure the required applet is still selected
pkcs15emu = name;โ when using PKCS#15 emulation, force the emulation driver for specific cards. Required for external drivers, but can be used with built-in drivers too.force_protocol = value;โ force protocol selection for specific cards. Known parameters:t0t1raw
read_only = bool;โ mark card as read/only card in the PKCS#11/Minidriver/BaseCSP interface (Default:false).md_supports_X509_enrollment = bool;โ indicate X509 enrollment support at the Minidriver/BaseCSP interface (Default:false).md_guid_as_id = bool;โ use the GUID generated for the key as the id in the PKCS#15 structure (Default:false, i.e. auto generated).md_guid_as_label = bool;โ use the GUID generated for the key as the label in the PKCS#15 structure (Default:false, i.e. no label set).md_supports_container_key_gen = bool;โ card allows generating key pairs on the card (Default:false).md_supports_container_key_import = bool;โ card allows importing private keys (Default:false).md_pinpad_dlg_title = value;โ window title of the PIN pad dialog (Default:"Windows Security").md_pinpad_dlg_icon = filename;โ filename of the icon for the PIN pad dialog; use""for no icon (Default: Built-in smart card icon).md_pinpad_dlg_main = value;โ main instruction of the PIN pad dialog (Default:"OpenSC Smart Card Provider").md_pinpad_dlg_content_user = value;โ content of the PIN pad dialog for role"user"(Default:"Please enter your PIN on the PIN pad.").md_pinpad_dlg_content_user_sign = value;โ content of the PIN pad dialog for role"user+signature"(Default:"Please enter your digital signature PIN on the PIN pad.").md_pinpad_dlg_content_admin = value;โ content of the PIN pad dialog for role"admin"(Default:"Please enter your PIN to unblock the user PIN on the PIN pad.")md_pinpad_dlg_expanded = value;โ expanded information of the PIN pad dialog (Default:"This window will be closed automatically after the PIN has been submitted on the PIN pad (timeout typically after 30 seconds).")md_pinpad_dlg_enable_cancel = bool;โ allow the user to cancel the PIN pad dialog (Default:false). If this value is set totrue, the user needs to click"OK"to start the PIN verification on the PIN pad. The user can choose the default behavior by enabling or disabling the checkbox of the dialog. The setting is saved by the program's full path (program_path) that uses OpenSC.
And listen โ the registry key HKCU\Software\OpenSC Project\OpenSC\md_pinpad_dlg_enable_cancel\program_path overwrites this setting with a DWORD set to either 1 (enabled) or 0 (disabled). ๐
md_pinpad_dlg_timeout = num;โ time in seconds for the progress bar of the PIN pad dialog to tick.0removes the progress bar (Default:30).notify_card_inserted = value;notify_card_inserted_text = value;โ notification title and text when the card was inserted (Default:"Smart card detected", ATR of the card).notify_card_removed = value;notify_card_removed_text = value;โ notification title and text when the card was removed (Default:"Smart card removed", name of smart card reader).notify_pin_good = value;notify_pin_good_text = value;โ notification title and text when the PIN was verified (Default:"PIN verified","Smart card is unlocked").notify_pin_bad = value;notify_pin_bad_text = value;โ notification title and text when the PIN was wrong (Default:"PIN not verified","Smart card is locked").
๐๏ธ Configuration of PKCS#15 Framework ๐๏ธ
use_file_caching = value;โ whether to cache the card's files (like, say, certificates) on disk infile_cache_dir. Possible parameters:yes: Cache all files (public and private).public: Cache only public files.no: File caching disabled.
(Default: public for the following card drivers: atrust-acos (deactivated driver), belpic, cac1, cac, coolkey, dnie, edo, esteid2018, esteid2025, flex (deactivated driver), cyberflex (deactivated driver), gemsafeV1, idprime, itacns, jpki, MaskTech, mcrd (deactivated driver), npa, nqapplet, tcos, dtrust โ and otherwise no.)
โ ๏ธ If caching is done by a system process, the cached files may be placed inaccessible from the user account. Use a globally readable and writable location if you wish to share the cached information. And note: the cached files may contain personal data such as name and mail address. ๐ฌ
file_cache_dir = filename;โ where to cache the card's files. The default values are:$XDG_CACHE_HOME/opensc/(If$XDG_CACHE_HOMEis defined)$HOME/.cache/opensc/(Unix)$USERPROFILE\.eid-cache\(Windows)
โ ๏ธ If caching is done by a system process, the cached files may be placed inaccessible from a user account. Use a globally readable and writable location if you wish to share the cached information. And note: the cached files may contain personal data such as name and mail address. ๐ฌ
Also! The PIV-II card driver supports the history object's list of retired keys and certificates if they are readable in the file cache directory. If the specified object's URL is "http://"DNS name"/"ASCII-HEX OffCardKeyHistoryFile, then the searches for the file name OffCardKeyHistoryFile happen in the cache directory. ๐ง
use_pin_caching = bool;โ use PIN caching (Default:true)?pin_cache_counter = num;โ how many times to use a PIN from cache before re-authenticating it (Default:10)?pin_cache_ignore_user_consent = bool;โ okay so</p> older PKCS#11 apps that don't supportCKA_ALWAYS_AUTHENTICATEmight need this turned on just to get signatures working with certain cards (Default:false). โจ
Pro tip from the page itself: it's recommended you also turn on PIN caching with the use_pin_caching option, so OpenSC can actually hand the PIN to the card when it needs it. ๐ซถ
pin_protected_certificate = value;โ how to treat a PIN-protected certificate. The known parameters are:protectโ the certificate stays PIN-protected. ๐declassifyโ let the certificate be read without enforcing verification of the PIN. ๐ignoreโ straight up ignore PIN-protected certificates. ๐
(Default: protect.)
enable_pkcs15_emulation = bool;โ turn on pkcs15 emulation (Default:true). ๐ฆtry_emulation_first = bool;โ prefer the pkcs15 emulation code before the normal pkcs15 processing (Default:no). Some cards work in emu-only mode, and they don't depend on this option at all. ๐enable_builtin_emulation = bool;โ turn on builtin emulators (Default:true). ๐builtin_emulators = emulators;โ the list of builtin pkcs15 emulators to test (Default:internal).- The special value
internalwill try all the builtin pkcs15 emulators that aren't disabled. ๐ - The special value
oldwill try all the disabled pkcs15 emulators. โญ
- The special value
pkcs11_enable_InitToken = bool;โ enable initialization and card recognition (Default:false). ๐emulatename{ block_contents }โ configuration options for a PKCS#15 emulator, where name is a short name for an external card driver. ๐module = filename;โ for pkcs15 emulators loaded from an external shared library/DLL, you need to specify the path name of the module and customize thecard_atrexample above correctly. ๐งfunction = name;โ get the init function name of the emulator (Default:sc_pkcs15_init_func_ex). โจ
applicationhexstring{ block_contents }โ configuration of the on-card-application, where hexstring is the application identifier (AID). ๐type = name;โ type of application, where name is one of:genericprotected
Used to distinguish the common access application from an application for which authentication to perform some operation cannot be obtained with the common procedures (ex. object creation protected by secure messaging). Used by the PKCS#11 module configured to expose a restricted number of slots. (for ex. configured to expose only User PIN slot, User and Sign PINs slots, ...) ๐ธ
model = name;disable = bool;โ do not expose the application in the PKCS#15 framework (Default:false). ๐user_pin = name;โ name of the User PIN object that will be used as the main PIN. ๐ซถsign_pin = name;โ name of the PIN object that will be used for signing. โ๏ธ
๐ฅ Configuration of PKCS#11 ๐ฅ
max_virtual_slots = num;โ maximum number of virtual slots (Default:16). If there are more slots than defined here, the remaining slots get hidden from PKCS#11. ๐slots_per_card = num;โ maximum number of PIN slots per smart card (Default:4). If the card has fewer PINs than defined here, the remaining number of slots will be empty. For Firefox, Chrome and Chromium, theslots_per_cardis set to1, to avoid prompting for unrelated PINs. Typically, this effectively disables signature PINs and keys. ๐ญlock_login = bool;โ by default, the OpenSC PKCS#11 module will not lock your card once you authenticate to the card viaC_Login(Default:false). So other users or other applications are not prevented from connecting to the card and performing crypto operations (which may be possible because you have already authenticated with the card). This setting is not very secure. โ ๏ธ
Also, if your card is not locked, you can encounter problems due to limitations of the OpenSC framework, which still isn't thoroughly tested in the multi-threads environment. ๐ตโ๐ซ
Your settings will be more secure if you choose to lock your card. Nevertheless, this behavior is a known violation of the PKCS#11 specification. Now once one application has started using your card with C_Login, no other application can use it, until the first one is done and calls C_Logout or C_Finalize. In the case of many PKCS#11 applications this does not happen until you exit the application. ๐
Thus it is impossible to use several smart card aware applications at the same time, e.g. you cannot run both Firefox and Thunderbird at the same time, if both are configured to use your smart card. ๐ญ
atomic = bool;โ by default, interacting with the OpenSC PKCS#11 module may change the state of the token, e.g. whether a user is logged in or not (Default:false). ๐ธ
Thus other users or other applications may change or use the state of the token unknowingly. Other applications may create signatures abusing an existing login, or they may logout unnoticed. ๐
With this setting enabled, the login state of the token is tracked and cached (including the PIN). Every transaction is preceded by restoring the login state. After every transaction a logout is performed. This setting by default also enables lock_login to disable access for other applications during the atomic transactions. ๐ฅ
Please note that any PIN-pad should be disabled (see enable_pinpad), because the user would have to input their PIN for every transaction. ๐
init_sloppy = bool;โ with this setting disabled, the OpenSC PKCS#11 module will initialize the slots available when the application callsC_GetSlotList. With this setting enabled, the slots will also get initialized whenC_GetSlotInfois called (Default:true). โจ
This setting is a workaround for Java, which does not call C_GetSlotList when configured with a static slot instead of slotListIndex. ๐ฆ
user_pin_unblock_style = mode;โ user PIN unblock style mode is one of:none(Default): PIN unblock is not possible with the PKCS#11 API. ๐ซset_pin_in_unlogged_session:C_SetPINin unlogged session: PUK is passed as theOldPinargument of theC_SetPINcall. ๐set_pin_in_specific_context:C_SetPINin theCKU_SPECIFIC_CONTEXTlogged session: PUK is passed as theOldPinargument of theC_SetPINcall. ๐init_pin_in_so_session:C_InitPINinCKU_SOlogged session: User PIN'UNBLOCK'is protected by SOPIN. (PUK == SOPIN). ๐
create_puk_slot = bool;โ create a slot for unblocking the PIN with PUK (Default:false). This way the PKCS#11 API can be used to login with PUK and change a PIN. May cause problems with some applications like Firefox and Thunderbird. โ ๏ธcreate_slots_for_pins = mode...;โ symbolic names of PINs for which slots are created, where mode is a list of:all(Default): All non-SO-PIN, non-unblocking PINs. ๐user: The first global or first local PIN. ๐ซถsign: The second PIN (first local, second global or second local). โ๏ธ
A card can contain more then one PINs or more then one on-card application with its own PINs. Normally, to access all of them with the PKCS#11 API a slot has to be created for all of them. Many slots could be annoying for some of the widely used applications, like FireFox. This configuration parameter allows you to select the PIN(s) for which a PKCS#11 slot will be created. ๐
Only PINs that are initialised, non-SO-PIN, non-unblocking are associated with a symbolic name. โจ
For the module to simulate the opensc-onepin module behavior, use the following option create_slots_for_pins = "user"; ๐
๐ ENVIRONMENT ๐
OPENSC_CONFโ filename for a user defined configuration file. ๐
If this environment variable is not found on Windows, the registry key Software\OpenSC Project\OpenSC\ConfigFile is checked. ๐ช
OPENSC_DEBUGโ seedebug = num;๐OPENSC_DRIVERโ seecard_drivers = name...;๐CARDMOD_LOW_LEVEL_DEBUGโ write minidriver debug information toC:\tmp\md.log, if set to1. ๐
If this environment variable is not found on Windows, the registry key Software\OpenSC Project\OpenSC\MiniDriverDebug is checked. ๐ช
PIV_EXT_AUTH_KEY,PIV_9A_KEY,PIV_9C_KEY,PIV_9D_KEY,PIV_9E_KEYโ PIV configuration during initialization withpiv-tool. ๐ณPIV_USE_SM,PIV_PAIRING_CODEโ PIV configuration during initialization. See Configuration Options for PIV Card. ๐
๐ FILES ๐
/etc/opensc.confโ system-wide configuration file. ๐๏ธ/usr/share/doc/opensc/opensc.confโ extended example configuration file. ๐
๐ NOTES ๐
- German ID card emulator โ
https://github.com/frankmorgner/vsmartcard/tree/master/virtualsmartcard/npa-example-data๐ง
and that's a wrap bestie, we literally made it through the whole entire page ๐ซถโจ this was the opensc manual page for OPENSC.CONF(5), dated 04/19/2026 โ iconic, no cap, go forth and configure responsibly ๐
๐
๐ฆ where this page comes from
- fedora 43: opensc-libs 0.27.1-2.fc43 ยท LGPL-2.1-or-later AND BSD-3-Clause
- fedora 44: opensc-libs 0.27.1-2.fc44 ยท LGPL-2.1-or-later AND BSD-3-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms