File: opensc.conf.example.in

package info (click to toggle)
opensc 0.26.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,420 kB
  • sloc: ansic: 178,823; xml: 6,327; sh: 2,115; makefile: 1,023; cpp: 304; lex: 92
file content (1193 lines) | stat: -rw-r--r-- 47,291 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
# Configuration file for OpenSC
# Example configuration file

# NOTE: All key-value pairs must be terminated by a semicolon.

# Default values for any application
# These can be overridden by an application
# specific configuration block.
app default {
	# Amount of debug info to print
	#
	# A greater value means more debug info.
	# Default: 0
	#
	#debug = 3;

	# The file to which debug output will be written
	#
	# Special values 'stdout' and 'stderr' are recognized.
	# Default: stderr
	#
	# debug_file = @DEBUG_FILE@;

	# PKCS#15 initialization / personalization
	# profiles directory for pkcs15-init.
	# Default: @PROFILE_DIR_DEFAULT@
	#
	# profile_dir = @PROFILE_DIR@;

	# Disable pop-ups of built-in GUI
	#
	# Default: false
	# disable_popups = true;

	# Enable default card driver
	# Default card driver is explicitly enabled for the 'opensc-explorer' and 'opensc-tool'.
	#
	# Default: false
	# enable_default_driver = true;

	# List of readers to ignore
	# If any of the strings listed below is matched in a reader name (case
	# sensitive, partial matching possible), the reader is ignored by OpenSC.
	# Use `opensc-tool --list-readers` to see all currently connected readers.
	#
	# Default: empty
	# ignored_readers = "CardMan 1021", "SPR 532";

	# CT-API module configuration.
	reader_driver ctapi {
		# module @LIBDIR@@LIB_PRE@towitoko@DYN_LIB_EXT@ {
			# CT-API ports:
			# 0..3		COM1..4
			# 4		Printer
			# 5		Modem
			# 6..7		LPT1..2
			# ports = 0;
		# }
	}

	# The following section shows definitions for PC/SC readers.
	reader_driver pcsc {
		# Limit command and response sizes. Some Readers don't propagate their
		# transceive capabilities correctly. max_send_size and max_recv_size
		# allow setting the limits manually, for example to enable extended
		# length capabilities.
		# Default: max_send_size = 255, max_recv_size = 256;
		# max_send_size = 65535;
		# max_recv_size = 65536;
		#
		# Connect to reader in exclusive mode?
		# Default: false
		# connect_exclusive = true;
		#
		# What to do when disconnecting from a card (SCardDisconnect)
		# Valid values: leave, reset, unpower.
		# Default: leave
		# disconnect_action = reset;
		#
		# What to do at the end of a transaction (SCardEndTransaction)
		# Valid values: leave, reset, unpower.
		# Default: leave
		# transaction_end_action = reset;
		#
		# What to do when reconnection to a card (SCardReconnect)
		# Valid values: leave, reset, unpower.
		# Note that this affects only the internal reconnect (after a SCARD_W_RESET_CARD).
		# A forced reset via sc_reset() always does a full powerup.
		# Default: leave
		# reconnect_action = reset;
		#
		# Enable pinpad if detected (PC/SC v2.0.2 Part 10)
		# Default: true
		# enable_pinpad = false;
		#
		# Some pinpad readers can only handle one exact length of the PIN.
		# fixed_pinlength sets this value so that OpenSC expands the padding to
		# this length.
		# Default: 0 (i.e. not fixed)
		# fixed_pinlength = 6;
		#
		# Detect reader capabilities with escape commands (wrapped APDUs with
		# CLA=0xFF as 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
		# enable_escape = true;
		#
		# Use specific pcsc provider.
		# Default: @DEFAULT_PCSC_PROVIDER@
		# provider_library = @DEFAULT_PCSC_PROVIDER@
	}

	# Options for OpenCT support
	reader_driver openct {
		# Virtual readers to allocate.
		# Default: 2
		# readers = 5;
		#
		# Limit command and response sizes.
		# Default: n/a
		# max_send_size = 255;
		# max_recv_size = 256;
	}

	# Options for CryptoTokenKit support
	reader_driver cryptotokenkit {
		# Limit command and response sizes. Some Readers don't propagate their
		# transceive capabilities correctly. max_send_size and max_recv_size
		# allow setting the limits manually, for example to enable extended
		# length capabilities.
		# Default: autodetect
		# max_send_size = 65535;
		# max_recv_size = 65536;
	}

	# Allowlist of card drivers to load at start-up
	#
	# The supported internal card driver names can be retrieved
	# from the output of:
	# $ opensc-tool --list-drivers
	#
	# A special value of 'old' will load all
	# statically linked drivers that may be removed in the future.
	#
	# A special value of 'internal' will load all
	# statically linked drivers. If an unknown (i.e. not
	# internal) driver is supplied, a separate configuration
	# configuration block has to be written for the driver.
	# Default: internal
	# NOTE: When "internal" keyword is used, must be last entry
	#
	#card_drivers = old, internal;

	# Card driver configuration blocks.

	# For card drivers loaded from an external shared library/DLL,
	# you need to specify the path name of the module
	#
	# card_driver customcos {
		# The location of the driver library
		# module = @LIBDIR@@LIB_PRE@card_customcos@DYN_LIB_EXT@;
	# }

	card_driver npa {
		# German ID card requires the CAN to be verified before QES PIN. This,
		# however, is not part of the PKCS#15 profile of the card. So for
		# verifying the QES PIN we actually need both. The CAN may be given
		# here. If the CAN is not given here, it will be prompted on the
		# command line or on the reader (depending on the reader's
		# capabilities).
		#
		#can = 222222;

		# QES is only possible with a Comfort Reader (CAT-K), which holds a
		# cryptographic key to authenticate itself as signature terminal (ST).
		# We usually will use the reader's capability to sign the data.
		# However, during development you may specify soft certificates and
		# keys for a ST below.
		# The following example EAC PKI can be found in vicc's example data:
		# https://github.com/frankmorgner/vsmartcard/tree/master/virtualsmartcard/npa-example-data
		#
		#st_dv_certificate = ZZSTDVCA00001.cvcert;
		#st_certificate = ZZSTTERM00001.cvcert;
		#st_key = ZZSTTERM00001.pkcs8;
	}

	# Configuration block for DNIe
	#
	# Card DNIe has an option to show an extra warning before
	# issuing a signature.

	card_driver dnie {
		# Disable / enable warning message when performing a
		# signature operation with the DNIe.
		# Only used if compiled with --enable-dnie-ui
		# user_consent_enabled = yes;

		# Specify the pinentry application to use if warning
		# is configured to be displayed using pinentry.
		# Default: /usr/bin/pinentry
		# Only used if compiled with --enable-dnie-ui
		# user_consent_app = "/usr/bin/pinentry";
	}

	card_driver edo {
		# CAN is required to establish connection
		# with the card. It might be overridden by
		# EDO_CAN environment variable. Currently,
		# it is not possible to set it in any other way.
		#
		#can = 123456;
	}

	card_driver eoi {
		# CAN is required to establish connection
		# with the card. When using contact reader
		# it is read (and decrypted) from the card.
		# When using contactless reader, CAN has to
		# be specified here or using the EOI_CAN
		# environment variable.
		#can = 123456;
		#
		# To hide unneeded slots it's also
		# recommended to set
		#   create_slots_for_pins = "user,sign";
		# in the 'pkcs11' section below
	}

	card_driver PIV-II {
		# *NOTE* The following are only usable if OpenSC is configured with --enable-piv-sm

		# "piv_pairing_code"
		# Virtual Contact Interface (VCI) an optional feature, to allow
		# contactless access to card as if it was using the contact reader.
		# VCI requires SM. It may also require a pairing code which may be printed on the
		# card, given to card owner when card issued or available from the card when used
		# with a contact reader. Contact your card issuing agency for details on what your
		# card supports.
		# Pairing code can be set in opensc.conf or via environment (recommended).
		# It is an 8 digit string.
		# Default: no pairing code.
		# piv_pairing_code = 12345678;
		# May be set via environment: PIV_PAIRING_CODE=12345678

		# Environment variables override opensc.conf
	}

	# In addition to the built-in list of known cards in the
	# card driver, you can configure a new card for the driver
	# using the card_atr block. The goal is to centralize
	# everything related to a certain card to card_atr.
	#
	# The supported internal card driver names can be retrieved
	# from the output of:
	# $ opensc-tool --list-drivers

	# Generic format: card_atr <hex encoded ATR (case-sensitive!)>

	# New card entry for the flex card driver
	# card_atr 3b:f0:0d:ca:fe {
		# All parameters for the context are
		# optional unless specified otherwise.

		# Context: global, card driver
		#
		# ATR mask value
		#
		# The mask is logically AND'd with an
		# card ATR prior to comparison with the
		# ATR reference value above. Using mask
		# allows identifying and configuring
		# multiple ATRs as the same card model.
		# atrmask = "ff:ff:ff:ff:ff";

		# Context: card driver
		#
		# Specify used card driver (REQUIRED).
		#
		# When enabled, overrides all possible
		# settings from the card drivers built-in
		# card configuration list.
		# driver = "flex";

		# Set card name for card drivers that allows it.
		# name = "My CryptoFlex card";

		# Card type as an integer value.
		#
		# Depending on card driver, this allows
		# tuning the behaviour of the card driver
		# for your card.
		# type = "2002";

		# Card flags as an hex value.
		# Multiple values are OR'd together.
		#
		# Depending on card driver, this allows
		# fine-tuning the capabilities in
		# the card driver for your card.
		#
		# Optionally, some known parameters
		# can be specified as strings:
		#
		# rng - On-board random number source
		# keep_alive - Request the card driver to send a "keep alive" command before each transaction to make sure that the required applet is still selected.
		#
		# flags = "rng", "keep_alive", "0x80000000";

		#
		# Context: PKCS#15 emulation layer
		#
		# 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.
		# pkcs15emu = "custom";

		#
		# Context: reader driver
		#
		# Force protocol selection for specific cards.
		# Known parameters: t0, t1, raw
		# force_protocol = "t0";

		# Context: minidriver
		#
		# read_only: Mark card as read/only card in Minidriver/BaseCSP interface (Default: false)
		# md_supports_X509_enrollment: Indicate X509 enrollment support at Minidriver/BaseCSP interface (Default: false)
		# md_guid_as_id: Use the GUID generated for the key as id in the PKCS#15 structure (Default: false, i.e. auto generated)
		# md_guid_as_label: Use the GUID generated for the key as label in the PKCS#15 structure (Default: false, i.e. no label set)
		# md_supports_container_key_gen: Card allows generating key pairs on the card (Default: false)
		# md_supports_container_key_import: Card allows importing private keys (Default: false)
		#
		# Window title of the PIN pad dialog
		# Default: "Windows Security"
		# md_pinpad_dlg_title = "Title";
		#
		# Filename of the icon for the PIN pad dialog; use "" for no icon
		# Default: Built-in smart card icon
		# md_pinpad_dlg_icon = "";
		#
		# Main instruction of the PIN pad dialog
		# Default: "OpenSC Smart Card Provider"
		# md_pinpad_dlg_main = "Main";
		#
		# Content of the PIN pad dialog for role "user"
		# Default: "Please verify your fingerprint or PIN on the card."
		# md_pinpad_dlg_content_user = "Content User";
		#
		# Content of the PIN pad dialog for role "user+signature"
		# Default: "Please verify your fingerprint or PIN for the digital signature PIN on the card."
		# md_pinpad_dlg_content_user_sign = "Content User+Sign";
		#
		# Content of the PIN pad dialog for role "admin"
		# Default: "Please enter your PIN to unblock the user PIN on the PINPAD."
		# md_pinpad_dlg_content_admin = "Content Admin";
		#
		# Expanded information of the PIN pad dialog
		# Default: "This window will be closed automatically after the PIN has been submitted on the PINPAD (timeout typically after 30 seconds)."
		# md_pinpad_dlg_expanded = "Expanded Information";
		#
		# Allow the user to cancel the PIN pad dialog by not immediately requesting the PIN on the PIN pad
		# Default: false
		# md_pinpad_dlg_enable_cancel = true;
		#
		# Content of the verification of the PIN pad dialog
		# Default: "Automatically request PIN immediately on PIN-Pad"
		# md_pinpad_dlg_verification = "Verification";
		#
		# Time in seconds for the progress bar of the PIN pad dialog to tick. "0" removes the progress bar.
		# Default: 30
		# md_pinpad_dlg_timeout = 0;

		# Notification title and text when card was inserted
		# Default: "Smart card detected"
		# notify_card_inserted = "inserted title";
		# Default: ATR of the card
		# notify_card_inserted_text = "inserted text";
		#
		# Notification title and text when card was removed
		# Default: "Smart card removed"
		# notify_card_removed = "card removed";
		# Default: Name of smart card reader
		# notify_card_removed_text = "removed text";
		#
		# Notification title and text when PIN was verified
		# Default: "PIN verified"
		# notify_pin_good = "good PIN";
		# Default: "Smart card is unlocked"
		# notify_pin_good_text = "good text";
		#
		# Notification title and text when PIN was wrong
		# Default: "PIN not verified"
		# notify_pin_bad = "bad PIN";
		# Default: "Smart card is locked"
		# notify_pin_bad_text = "bad text";
	# }

	# Yubikey is known to have the PIV applet and the OpenPGP applet. OpenSC
	# can handle both to access keys and certificates, but only one at a time.
	card_atr 3b:f8:13:00:00:81:31:fe:15:59:75:62:69:6b:65:79:34:d4 {
		name = "Yubikey 4";
		# Select the PKI applet to use ("PIV-II" or "openpgp")
		driver = "PIV-II";
		# Recover from other applications accessing a different applet
		flags = "keep_alive";
	}
	card_atr 3b:fc:13:00:00:81:31:fe:15:59:75:62:69:6b:65:79:4e:45:4f:72:33:e1 {
		name = "Yubikey Neo";
		# Select the PKI applet to use ("PIV-II" or "openpgp")
		driver = "PIV-II";
		# Recover from other applications accessing a different applet
		flags = "keep_alive";
	}
	card_atr 3b:8c:80:01:59:75:62:69:6b:65:79:4e:45:4f:72:33:58 {
		atrmask = "FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:00:00";
		name = "Yubikey Neo";
		# Select the PKI applet to use ("PIV-II" or "openpgp")
		driver = "PIV-II";
		# Recover from other applications accessing a different applet
		flags = "keep_alive";
	}

	# Oberthur's AuthentIC v3.2.2
	card_atr 3B:DD:18:00:81:31:FE:45:80:F9:A0:00:00:00:77:01:00:70:0A:90:00:8B {
		type = 11100;
		driver = "authentic";
		name = "AuthentIC v3.1";

		# Name of SM configuration sub-section
		# secure_messaging = local_authentic;
	}

	# IAS/ECC cards
	card_atr 3B:7F:96:00:00:00:31:B9:64:40:70:14:10:73:94:01:80:82:90:00 {
		type = 25001;
		driver = "iasecc";
		name = "Gemalto MultiApp IAS/ECC v1.0.1";
		secure_messaging = local_gemalto_iam;
		# secure_messaging = local_adele;
		read_only = false;
		md_supports_X509_enrollment = true;
	}
	card_atr 3B:7F:96:00:00:00:31:B8:64:40:70:14:10:73:94:01:80:82:90:00 {
		type = 25001;
		driver = "iasecc";
		name = "Gemalto MultiApp IAS/ECC v1.0.1";
		secure_messaging = local_gemalto_iam;
		read_only = false;
		md_supports_X509_enrollment = true;
	}
	#card_atr 3B:DD:18:00:81:31:FE:45:80:F9:A0:00:00:00:77:01:08:00:07:90:00:FE {
	#	type = 25002;
	#	driver = "iasecc";
	#	name = "Oberthur IAS/ECC v1.0.1";
	#	# No 'admin' application for this card -- no secure messaging
	#}
	#card_atr 3B:7F:18:00:00:00:31:B8:64:50:23:EC:C1:73:94:01:80:82:90:00 {
	#	type = 25003;
	#	driver = "iasecc";
	#	name = "Morpho YpsID S3 IAS/ECC";
	#	# secure_messaging = local_morpho_YpsID_S3;
	#}
	#card_atr 3B:DF:96:00:80:31:FE:45:00:31:B8:64:04:1F:EC:C1:73:94:01:80:82:90:00:EC {
	#	type = 25005;
	#	driver = "iasecc";
	#	name = "Morpho MI IAS/ECC v1.0.1";
	#	read_only = false;
	#	md_supports_X509_enrollment = true;
	#	secure_messaging = local_morpho_mi;
	#}
	card_atr 3B:DF:18:FF:81:91:FE:1F:C3:00:31:B8:64:0C:01:EC:C1:73:94:01:80:82:90:00:B3 {
		type = 25004;
		driver = "iasecc";
		name = "Amos IAS/ECC v1.0.1";
		read_only = false;
		md_supports_X509_enrollment = true;
		secure_messaging = local_amos;
	}
	card_atr 3B:DC:18:FF:81:91:FE:1F:C3:80:73:C8:21:13:66:01:0B:03:52:00:05:38 {
		type = 25004;
		driver = "iasecc";
		name = "Amos IAS/ECC v1.0.1";
		read_only = false;
		md_supports_X509_enrollment = true;
		secure_messaging = local_amos_eid;
	}

	# SmartCard-HSM with contact-based interface or USB-Stick
	card_atr 3B:FE:18:00:00:81:31:FE:45:80:31:81:54:48:53:4D:31:73:80:21:40:81:07:FA {
		driver = "sc-hsm";
		read_only = false;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
	}

	# SmartCard-HSM with contact-less interface
	card_atr 3B:8E:80:01:80:31:81:54:48:53:4D:31:73:80:21:40:81:07:18 {
		driver = "sc-hsm";
		read_only = false;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
	}

	# SmartCard-HSM 4k with contact-based interface or USB-Stick
	card_atr 3b:de:18:ff:81:91:fe:1f:c3:80:31:81:54:48:53:4d:31:73:80:21:40:81:07:1c {
		driver = "sc-hsm";
		read_only = false;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
	}

	# SmartCard-HSM with fingerprint sensor and PIN pad
	card_atr 3B:80:80:01:01 {
		force_protocol = "t1";
		read_only = true;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
		md_pinpad_dlg_main = "Fingerabdruck oder PIN eingeben";
		md_pinpad_dlg_content_user = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN auf der Karte.";
		md_pinpad_dlg_content_user_sign = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN für die digitale Signatur auf der Karte.";
		md_pinpad_dlg_content_admin = "Bitte geben Sie Ihre PIN zum Entsperren der Nutzer-PIN auf dem PIN-Pad ein.";
		md_pinpad_dlg_expanded = "Dieses Fenster wird automatisch geschlossen, wenn die PIN oder der Fingerabdruck verifiziert wurde (Timeout nach 30 Sekunden). Nutzen Sie das PIN-Pad, um die Eingabe abzubrechen.";
		md_pinpad_dlg_timeout = 30;
		notify_card_inserted = "GoID erkannt";
		notify_card_inserted_text = "";
		notify_card_removed = "GoID entfernt";
		notify_pin_good = "Fingerabdruck bzw. PIN verifiziert";
		notify_pin_good_text = "GoID ist entsperrt";
		notify_pin_bad = "Fingerabdruck bzw. PIN nicht verifiziert";
		notify_pin_bad_text = "GoID ist gesperrt";
	}

	# GoID with fingerprint sensor and PIN pad
	card_atr 3B:84:80:01:47:6f:49:44:00 {
		atrmask = "FF:FF:FF:FF:FF:FF:FF:FF:00";
		driver = "sc-hsm";
		force_protocol = "t1";
		read_only = true;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
		md_pinpad_dlg_main = "Fingerabdruck oder PIN eingeben";
		md_pinpad_dlg_content_user = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN auf der Karte.";
		md_pinpad_dlg_content_user_sign = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN für die digitale Signatur auf der Karte.";
		md_pinpad_dlg_content_admin = "Bitte geben Sie Ihre PIN zum Entsperren der Nutzer-PIN auf dem PIN-Pad ein.";
		md_pinpad_dlg_expanded = "Dieses Fenster wird automatisch geschlossen, wenn die PIN oder der Fingerabdruck verifiziert wurde (Timeout nach 30 Sekunden). Nutzen Sie das PIN-Pad, um die Eingabe abzubrechen.";
		md_pinpad_dlg_timeout = 30;
		notify_card_inserted = "GoID erkannt";
		notify_card_inserted_text = "";
		notify_card_removed = "GoID entfernt";
		notify_pin_good = "Fingerabdruck bzw. PIN verifiziert";
		notify_pin_good_text = "GoID ist entsperrt";
		notify_pin_bad = "Fingerabdruck bzw. PIN nicht verifiziert";
		notify_pin_bad_text = "GoID ist gesperrt";
	}
	# GoID with fingerprint sensor and PIN pad
	card_atr 3B:85:80:01:47:6f:49:44:00:00 {
		atrmask = "FF:FF:FF:FF:FF:FF:FF:FF:00:00";
		driver = "sc-hsm";
		force_protocol = "t1";
		read_only = true;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
		md_pinpad_dlg_main = "Fingerabdruck oder PIN eingeben";
		md_pinpad_dlg_content_user = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN auf der Karte.";
		md_pinpad_dlg_content_user_sign = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN für die digitale Signatur auf der Karte.";
		md_pinpad_dlg_content_admin = "Bitte geben Sie Ihre PIN zum Entsperren der Nutzer-PIN auf dem PIN-Pad ein.";
		md_pinpad_dlg_expanded = "Dieses Fenster wird automatisch geschlossen, wenn die PIN oder der Fingerabdruck verifiziert wurde (Timeout nach 30 Sekunden). Nutzen Sie das PIN-Pad, um die Eingabe abzubrechen.";
		md_pinpad_dlg_timeout = 30;
		notify_card_inserted = "GoID erkannt";
		notify_card_inserted_text = "";
		notify_card_removed = "GoID entfernt";
		notify_pin_good = "Fingerabdruck bzw. PIN verifiziert";
		notify_pin_good_text = "GoID ist entsperrt";
		notify_pin_bad = "Fingerabdruck bzw. PIN nicht verifiziert";
		notify_pin_bad_text = "GoID ist gesperrt";
	}
	# GoID with fingerprint sensor and PIN pad
	card_atr 3B:86:80:01:47:6f:49:44:00:00:00 {
		atrmask = "FF:FF:FF:FF:FF:FF:FF:FF:00:00:00";
		driver = "sc-hsm";
		force_protocol = "t1";
		read_only = true;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
		md_pinpad_dlg_main = "Fingerabdruck oder PIN eingeben";
		md_pinpad_dlg_content_user = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN auf der Karte.";
		md_pinpad_dlg_content_user_sign = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN für die digitale Signatur auf der Karte.";
		md_pinpad_dlg_content_admin = "Bitte geben Sie Ihre PIN zum Entsperren der Nutzer-PIN auf dem PIN-Pad ein.";
		md_pinpad_dlg_expanded = "Dieses Fenster wird automatisch geschlossen, wenn die PIN oder der Fingerabdruck verifiziert wurde (Timeout nach 30 Sekunden). Nutzen Sie das PIN-Pad, um die Eingabe abzubrechen.";
		md_pinpad_dlg_timeout = 30;
		notify_card_inserted = "GoID erkannt";
		notify_card_inserted_text = "";
		notify_card_removed = "GoID entfernt";
		notify_pin_good = "Fingerabdruck bzw. PIN verifiziert";
		notify_pin_good_text = "GoID ist entsperrt";
		notify_pin_bad = "Fingerabdruck bzw. PIN nicht verifiziert";
		notify_pin_bad_text = "GoID ist gesperrt";
	}
	# GoID with fingerprint sensor and PIN pad
	card_atr 3B:87:80:01:47:6f:49:44:00:00:00:00 {
		atrmask = "FF:FF:FF:FF:FF:FF:FF:FF:00:00:00:00";
		driver = "sc-hsm";
		force_protocol = "t1";
		read_only = true;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
		md_pinpad_dlg_main = "Fingerabdruck oder PIN eingeben";
		md_pinpad_dlg_content_user = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN auf der Karte.";
		md_pinpad_dlg_content_user_sign = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN für die digitale Signatur auf der Karte.";
		md_pinpad_dlg_content_admin = "Bitte geben Sie Ihre PIN zum Entsperren der Nutzer-PIN auf dem PIN-Pad ein.";
		md_pinpad_dlg_expanded = "Dieses Fenster wird automatisch geschlossen, wenn die PIN oder der Fingerabdruck verifiziert wurde (Timeout nach 30 Sekunden). Nutzen Sie das PIN-Pad, um die Eingabe abzubrechen.";
		md_pinpad_dlg_timeout = 30;
		notify_card_inserted = "GoID erkannt";
		notify_card_inserted_text = "";
		notify_card_removed = "GoID entfernt";
		notify_pin_good = "Fingerabdruck bzw. PIN verifiziert";
		notify_pin_good_text = "GoID ist entsperrt";
		notify_pin_bad = "Fingerabdruck bzw. PIN nicht verifiziert";
		notify_pin_bad_text = "GoID ist gesperrt";
	}
	# GoID with fingerprint sensor and PIN pad
	card_atr 3B:88:80:01:47:6f:49:44:00:00:00:00:00 {
		atrmask = "FF:FF:FF:FF:FF:FF:FF:FF:00:00:00:00:00";
		driver = "sc-hsm";
		force_protocol = "t1";
		read_only = true;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
		md_pinpad_dlg_main = "Fingerabdruck oder PIN eingeben";
		md_pinpad_dlg_content_user = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN auf der Karte.";
		md_pinpad_dlg_content_user_sign = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN für die digitale Signatur auf der Karte.";
		md_pinpad_dlg_content_admin = "Bitte geben Sie Ihre PIN zum Entsperren der Nutzer-PIN auf dem PIN-Pad ein.";
		md_pinpad_dlg_expanded = "Dieses Fenster wird automatisch geschlossen, wenn die PIN oder der Fingerabdruck verifiziert wurde (Timeout nach 30 Sekunden). Nutzen Sie das PIN-Pad, um die Eingabe abzubrechen.";
		md_pinpad_dlg_timeout = 30;
		notify_card_inserted = "GoID erkannt";
		notify_card_inserted_text = "";
		notify_card_removed = "GoID entfernt";
		notify_pin_good = "Fingerabdruck bzw. PIN verifiziert";
		notify_pin_good_text = "GoID ist entsperrt";
		notify_pin_bad = "Fingerabdruck bzw. PIN nicht verifiziert";
		notify_pin_bad_text = "GoID ist gesperrt";
	}
	# GoID with fingerprint sensor and PIN pad
	card_atr 3B:89:80:01:47:6f:49:44:00:00:00:00:00:00 {
		atrmask = "FF:FF:FF:FF:FF:FF:FF:FF:00:00:00:00:00:00";
		driver = "sc-hsm";
		force_protocol = "t1";
		read_only = true;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
		md_pinpad_dlg_main = "Fingerabdruck oder PIN eingeben";
		md_pinpad_dlg_content_user = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN auf der Karte.";
		md_pinpad_dlg_content_user_sign = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN für die digitale Signatur auf der Karte.";
		md_pinpad_dlg_content_admin = "Bitte geben Sie Ihre PIN zum Entsperren der Nutzer-PIN auf dem PIN-Pad ein.";
		md_pinpad_dlg_expanded = "Dieses Fenster wird automatisch geschlossen, wenn die PIN oder der Fingerabdruck verifiziert wurde (Timeout nach 30 Sekunden). Nutzen Sie das PIN-Pad, um die Eingabe abzubrechen.";
		md_pinpad_dlg_timeout = 30;
		notify_card_inserted = "GoID erkannt";
		notify_card_inserted_text = "";
		notify_card_removed = "GoID entfernt";
		notify_pin_good = "Fingerabdruck bzw. PIN verifiziert";
		notify_pin_good_text = "GoID ist entsperrt";
		notify_pin_bad = "Fingerabdruck bzw. PIN nicht verifiziert";
		notify_pin_bad_text = "GoID ist gesperrt";
	}
	# GoID with fingerprint sensor and PIN pad
	card_atr 3B:8A:80:01:47:6f:49:44:00:00:00:00:00:00:00 {
		atrmask = "FF:FF:FF:FF:FF:FF:FF:FF:00:00:00:00:00:00:00";
		driver = "sc-hsm";
		force_protocol = "t1";
		read_only = true;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
		md_pinpad_dlg_main = "Fingerabdruck oder PIN eingeben";
		md_pinpad_dlg_content_user = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN auf der Karte.";
		md_pinpad_dlg_content_user_sign = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN für die digitale Signatur auf der Karte.";
		md_pinpad_dlg_content_admin = "Bitte geben Sie Ihre PIN zum Entsperren der Nutzer-PIN auf dem PIN-Pad ein.";
		md_pinpad_dlg_expanded = "Dieses Fenster wird automatisch geschlossen, wenn die PIN oder der Fingerabdruck verifiziert wurde (Timeout nach 30 Sekunden). Nutzen Sie das PIN-Pad, um die Eingabe abzubrechen.";
		md_pinpad_dlg_timeout = 30;
		notify_card_inserted = "GoID erkannt";
		notify_card_inserted_text = "";
		notify_card_removed = "GoID entfernt";
		notify_pin_good = "Fingerabdruck bzw. PIN verifiziert";
		notify_pin_good_text = "GoID ist entsperrt";
		notify_pin_bad = "Fingerabdruck bzw. PIN nicht verifiziert";
		notify_pin_bad_text = "GoID ist gesperrt";
	}
	# GoID with fingerprint sensor and PIN pad
	card_atr 3B:8B:80:01:47:6f:49:44:00:00:00:00:00:00:00:00 {
		atrmask = "FF:FF:FF:FF:FF:FF:FF:FF:00:00:00:00:00:00:00:00";
		driver = "sc-hsm";
		force_protocol = "t1";
		read_only = true;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
		md_pinpad_dlg_main = "Fingerabdruck oder PIN eingeben";
		md_pinpad_dlg_content_user = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN auf der Karte.";
		md_pinpad_dlg_content_user_sign = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN für die digitale Signatur auf der Karte.";
		md_pinpad_dlg_content_admin = "Bitte geben Sie Ihre PIN zum Entsperren der Nutzer-PIN auf dem PIN-Pad ein.";
		md_pinpad_dlg_expanded = "Dieses Fenster wird automatisch geschlossen, wenn die PIN oder der Fingerabdruck verifiziert wurde (Timeout nach 30 Sekunden). Nutzen Sie das PIN-Pad, um die Eingabe abzubrechen.";
		md_pinpad_dlg_timeout = 30;
		notify_card_inserted = "GoID erkannt";
		notify_card_inserted_text = "";
		notify_card_removed = "GoID entfernt";
		notify_pin_good = "Fingerabdruck bzw. PIN verifiziert";
		notify_pin_good_text = "GoID ist entsperrt";
		notify_pin_bad = "Fingerabdruck bzw. PIN nicht verifiziert";
		notify_pin_bad_text = "GoID ist gesperrt";
	}
	# GoID with fingerprint sensor and PIN pad
	card_atr 3B:8C:80:01:47:6f:49:44:00:00:00:00:00:00:00:00:00 {
		atrmask = "FF:FF:FF:FF:FF:FF:FF:FF:00:00:00:00:00:00:00:00:00";
		driver = "sc-hsm";
		force_protocol = "t1";
		read_only = true;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
		md_pinpad_dlg_main = "Fingerabdruck oder PIN eingeben";
		md_pinpad_dlg_content_user = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN auf der Karte.";
		md_pinpad_dlg_content_user_sign = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN für die digitale Signatur auf der Karte.";
		md_pinpad_dlg_content_admin = "Bitte geben Sie Ihre PIN zum Entsperren der Nutzer-PIN auf dem PIN-Pad ein.";
		md_pinpad_dlg_expanded = "Dieses Fenster wird automatisch geschlossen, wenn die PIN oder der Fingerabdruck verifiziert wurde (Timeout nach 30 Sekunden). Nutzen Sie das PIN-Pad, um die Eingabe abzubrechen.";
		md_pinpad_dlg_timeout = 30;
		notify_card_inserted = "GoID erkannt";
		notify_card_inserted_text = "";
		notify_card_removed = "GoID entfernt";
		notify_pin_good = "Fingerabdruck bzw. PIN verifiziert";
		notify_pin_good_text = "GoID ist entsperrt";
		notify_pin_bad = "Fingerabdruck bzw. PIN nicht verifiziert";
		notify_pin_bad_text = "GoID ist gesperrt";
	}

	# GoID with fingerprint sensor and PIN pad
	card_atr 3B:8D:80:01:47:6f:49:44:00:00:00:00:00:00:00:00:00:00 {
		atrmask = "FF:FF:FF:FF:FF:FF:FF:FF:00:00:00:00:00:00:00:00:00:00";
		driver = "sc-hsm";
		force_protocol = "t1";
		read_only = true;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
		md_pinpad_dlg_main = "Fingerabdruck oder PIN eingeben";
		md_pinpad_dlg_content_user = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN auf der Karte.";
		md_pinpad_dlg_content_user_sign = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN für die digitale Signatur auf der Karte.";
		md_pinpad_dlg_content_admin = "Bitte geben Sie Ihre PIN zum Entsperren der Nutzer-PIN auf dem PIN-Pad ein.";
		md_pinpad_dlg_expanded = "Dieses Fenster wird automatisch geschlossen, wenn die PIN oder der Fingerabdruck verifiziert wurde (Timeout nach 30 Sekunden). Nutzen Sie das PIN-Pad, um die Eingabe abzubrechen.";
		md_pinpad_dlg_timeout = 30;
		notify_card_inserted = "GoID erkannt";
		notify_card_inserted_text = "";
		notify_card_removed = "GoID entfernt";
		notify_pin_good = "Fingerabdruck bzw. PIN verifiziert";
		notify_pin_good_text = "GoID ist entsperrt";
		notify_pin_bad = "Fingerabdruck bzw. PIN nicht verifiziert";
		notify_pin_bad_text = "GoID ist gesperrt";
	}

	# GoID with fingerprint sensor and PIN pad
	card_atr 3B:8E:80:01:47:6f:49:44:00:00:00:00:00:00:00:00:00:00:00 {
		atrmask = "FF:FF:FF:FF:FF:FF:FF:FF:00:00:00:00:00:00:00:00:00:00:00";
		driver = "sc-hsm";
		force_protocol = "t1";
		read_only = true;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
		md_pinpad_dlg_main = "Fingerabdruck oder PIN eingeben";
		md_pinpad_dlg_content_user = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN auf der Karte.";
		md_pinpad_dlg_content_user_sign = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN für die digitale Signatur auf der Karte.";
		md_pinpad_dlg_content_admin = "Bitte geben Sie Ihre PIN zum Entsperren der Nutzer-PIN auf dem PIN-Pad ein.";
		md_pinpad_dlg_expanded = "Dieses Fenster wird automatisch geschlossen, wenn die PIN oder der Fingerabdruck verifiziert wurde (Timeout nach 30 Sekunden). Nutzen Sie das PIN-Pad, um die Eingabe abzubrechen.";
		md_pinpad_dlg_timeout = 30;
		notify_card_inserted = "GoID erkannt";
		notify_card_inserted_text = "";
		notify_card_removed = "GoID entfernt";
		notify_pin_good = "Fingerabdruck bzw. PIN verifiziert";
		notify_pin_good_text = "GoID ist entsperrt";
		notify_pin_bad = "Fingerabdruck bzw. PIN nicht verifiziert";
		notify_pin_bad_text = "GoID ist gesperrt";
	}

	# GoID with fingerprint sensor and PIN pad
	card_atr 3B:8F:80:01:47:6f:49:44:00:00:00:00:00:00:00:00:00:00:00:00 {
		atrmask = "FF:FF:FF:FF:FF:FF:FF:FF:00:00:00:00:00:00:00:00:00:00:00:00";
		driver = "sc-hsm";
		force_protocol = "t1";
		read_only = true;
		md_supports_X509_enrollment = true;
		md_supports_container_key_gen = true;
		md_guid_as_label = true;
		md_pinpad_dlg_main = "Fingerabdruck oder PIN eingeben";
		md_pinpad_dlg_content_user = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN auf der Karte.";
		md_pinpad_dlg_content_user_sign = "Bitte verifizieren Sie Ihren Fingarabdruck oder Ihre PIN für die digitale Signatur auf der Karte.";
		md_pinpad_dlg_content_admin = "Bitte geben Sie Ihre PIN zum Entsperren der Nutzer-PIN auf dem PIN-Pad ein.";
		md_pinpad_dlg_expanded = "Dieses Fenster wird automatisch geschlossen, wenn die PIN oder der Fingerabdruck verifiziert wurde (Timeout nach 30 Sekunden). Nutzen Sie das PIN-Pad, um die Eingabe abzubrechen.";
		md_pinpad_dlg_timeout = 30;
		notify_card_inserted = "GoID erkannt";
		notify_card_inserted_text = "";
		notify_card_removed = "GoID entfernt";
		notify_pin_good = "Fingerabdruck bzw. PIN verifiziert";
		notify_pin_good_text = "GoID ist entsperrt";
		notify_pin_bad = "Fingerabdruck bzw. PIN nicht verifiziert";
		notify_pin_bad_text = "GoID ist gesperrt";
	}

	# Disable PKCS#1 v1.5 padding in HW.
	# Default: decipher
	# disable_hw_pkcs1_padding = both;

	secure_messaging local_authentic  {
		# name of external SM module
		# module_name = @DEFAULT_SM_MODULE@;
		# directory with external SM module
		# Default: @DEFAULT_SM_MODULE_PATH@
		# module_path = @DEFAULT_SM_MODULE_PATH@;

		# specific data to tune the module initialization
		# module_data = "Here can be your SM module init data";

		# SM mode:
		# '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 APDU are securized only if needed by the ACLs of the command to be executed.
		#
		#mode = transmit;

		# SM type specific flags
		# flags = 0x78;	   # 0x78 -- level 3, channel 0

		# Default KMC of the GP Card Manager for the Oberthur's Java cards
		# kmc = "00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00";
	}

	secure_messaging local_gemalto_iam  {
		module_name = @DEFAULT_SM_MODULE@;
		# module_path = @DEFAULT_SM_MODULE_PATH@;
		# module_data = "";
		type = acl;	     # transmit, acl

		ifd_serial = "11:22:33:44:55:66:77:88";

		# Keyset values from IAM profiles of the Gemalto IAS/ECC cards
		keyset_02_enc = "RW_PRIV_ENC_TEST";
		keyset_02_mac = "RW_PRIV_MAC_TEST";

		keyset_E828BD080FD2504543432D654944_01_enc = "RO_ENC_TEST_KEY_";
		keyset_E828BD080FD2504543432D654944_01_mac = "RO_MAC_TEST_KEY_";

		keyset_E828BD080FD2504543432D654944_03_enc = "RW_PUBL_ENC_TEST";
		keyset_E828BD080FD2504543432D654944_03_mac = "RW_PUBL_MAC_TEST";
	}

	secure_messaging local_amos  {
		module_name = @DEFAULT_SM_MODULE@;
		# module_path = @DEFAULT_SM_MODULE_PATH@;
		# module_data = "";
		mode = acl;
		ifd_serial = "11:22:33:44:55:66:77:88";
		keyset_02_enc = "ENCROECHANTILLON";
		keyset_02_mac = "MACROECHANTILLON";
	}

	secure_messaging local_amos_eid  {
		module_name = @DEFAULT_SM_MODULE@;
		# module_path = @DEFAULT_SM_MODULE_PATH@;
		# module_data = "";
		mode = acl;
		ifd_serial = "11:22:33:44:55:66:77:88";
		keyset_E828BD080FD2504543432D654944_03_enc = "RW_PUBL_ENC_TEST";
		keyset_E828BD080FD2504543432D654944_03_mac = "RW_PUBL_MAC_TEST";
	}

	secure_messaging local_adele  {
		module_name = @DEFAULT_SM_MODULE@;
		# module_path = @DEFAULT_SM_MODULE_PATH@;
		# module_data = "";
		type = acl;	     # transmit, acl

		ifd_serial = "11:22:33:44:55:66:77:88";

		# Keyset values from 'Adele' profiles of the IAS/ECC cards
		keyset_01_enc = "EMENCECHANTILLON";
		keyset_01_mac = "EMMACECHANTILLON";

		keyset_02_enc = "AAENCECHANTILLON";
		keyset_02_mac = "AAMACECHANTILLON";

		keyset_E828BD080FD2500000040301_02_enc = "E2ENCECHANTILLON";
		keyset_E828BD080FD2500000040301_02_mac = "E2MACECHANTILLON";

		keyset_D2500000044164E86C650101_02_enc = "E1ENCECHANTILLON";
		keyset_D2500000044164E86C650101_02_mac = "E1MACECHANTILLON";

		keyset_D2500000044164E86C650101_03_enc = "SIENCECHANTILLON";
		keyset_D2500000044164E86C650101_03_mac = "SIMACECHANTILLON";
	}

	# Below are the framework specific configuration blocks.

	# PKCS #15
	framework pkcs15 {
		# Whether to use the cache files in the user's
		# home directory.
		#
		# Note: If caching is done by a system process, caching may be placed
		# inaccessible from the user account. Use a global caching directory if
		# you wish to share the cached information.
		#
		# Default: `public` for static cards, `false` otherwise
		# use_file_caching = public;
		#
		# set a path for caching
		# so you do not use the env variables and for pam_pkcs11
		# (with certificate check)  where $HOME is not set
		# Default: path in user home
		# file_cache_dir = /var/lib/opensc/cache

		# Use PIN caching?
		# Default: true
		# use_pin_caching = false;
		#
		# How many times to use a PIN from cache before re-authenticating it?
		# Default: 10
		# pin_cache_counter = 3;
		#
		# Older PKCS#11 applications not supporting CKA_ALWAYS_AUTHENTICATE
		# may need to set this to get signatures to work with some cards.
		# Default: false
		# It is recommended to enable also use_pin_caching to allow OpenSC
		# to pass the pin to the card when needed.
		# pin_cache_ignore_user_consent = true;

		# How to handle a PIN-protected certificate
		# Valid values: protect, declassify, ignore.
		# Default: ignore in tokend, protect otherwise
		# pin_protected_certificate = declassify;

		# Enable pkcs15 emulation.
		# Default: yes
		# enable_pkcs15_emulation = no;
		#
		# Prefer pkcs15 emulation code before
		# the normal pkcs15 processing.
		# Some cards (like pteid) work in emu-only mode,
		# and do not depend on this option.
		#
		# Default: no
		# try_emulation_first = yes;

		# Enable builtin emulators.
		# Default: yes
		# enable_builtin_emulation = no;
		#
		# List of the builtin pkcs15 emulators to test
		# Special value of 'internal' will try all not disabled builtin pkcs15 emulators.
		# Special value of 'old' will try all disabled pkcs15 emulators. 
		# Default: internal;
		# builtin_emulators = old, internal;

		# additional settings per driver
		#
		# For pkcs15 emulators loaded from an external shared
		# library/DLL, you need to specify the path name of the module
		# and customize the card_atr example above correctly.
		#
		# emulate custom {
			# The location of the driver library
			# module = @LIBDIR@@LIB_PRE@p15emu_custom@DYN_LIB_EXT@;
		# }

		# Enable initialization and card recognition in PKCS#11 layer.
		# Default: no
		# pkcs11_enable_InitToken = yes;

		# some additional application parameters:
		# - type (generic, protected) used to distinguish the common access application
		#   and application for which authentication to perform some operation cannot be
		#   obtained with the common procedures (ex. object creation protected by secure messaging).
		#   Used by PKCS#11 module configured to expose restricted number of slots.
		#   (for ex. configured to expose only User PIN slot, User and Sign PINs slots, ...)
		#
		# - disable: do not expose application in PKCS15 framework
		#            default 'false'
		# - user_pin and sign_pin: labels of PIN objects that will be used as
		#            user & sign PINs. Otherwise the first suitable one will be used.
		application E828BD080FD25047656E65726963 {
			type = generic;
			model = "ECC Generic PKI";
			# disable = true
		}

		application E828BD080FD2500000040301 {
			type = generic;
			model = "Adèle Générique";
		}

		application E828BD080FD2504543432D654944 {
			type = protected;
			model = "ECC eID";
		}

		application E828BD080FD2500000040201 {
			type = protected;
			model = "Adèle Admin-2";
		}

		# Slovenian eID - low level (pinless, "Prijava brez PIN-a")
		application E828BD080F014E585031 {
			model = "ChipDocLite";
			disable = true;
			user_pin = "Norm PIN";
		}

		# Slovenian eID - high level (QES, "Podpis in prijava")
		application E828BD080F014E585030 {
			model = "ChipDocLite";
			# disable = true;
			user_pin = "Norm PIN";
			sign_pin = "Sig PIN";
		}
	}
}

# Parameters for the OpenSC PKCS11 module
app opensc-pkcs11 {
	pkcs11 {
		# Maximum Number of virtual slots.
		# If there are more slots than defined here,
		# the remaining slots will be hidden from PKCS#11.
		# Default: 16
		# max_virtual_slots = 32;

		# Maximum number of slots per smart card.
		# If the card has fewer keys than defined here,
		# the remaining number of slots will be empty.
		# Default: 4
		# slots_per_card = 2;

		# (max_virtual_slots/slots_per_card) limits the number of readers
		# that can be used on the system. Default is then 16/4=4 readers.

		# By default, the OpenSC PKCS#11 module will not lock your card
		# once you authenticate to the card via C_Login.
		#
		# Thus the other users or other applications is not prevented
		# from connecting to the card and perform 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 enconter problems
		# due to limitation of the OpenSC framework, that still is not
		# 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 PKCS#11
		# specification. Now once one application has started using your
		# card with C_Login, no other application can use it, until
		# the first is done and calls C_Logout or C_Finalize. In the case
		# of many PKCS#11 application 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.
		#
		# Default: false
		# lock_login = true;

		# 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.
		#
		# 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` (see
		# above) to disable access for other applications during the atomic
		# transactions.
		#
		# Please note that any PIN-pad should be disabled (see `enable_pinpad`
		# above), because the user would have to input his PIN for every
		# transaction.
		#
		# Default: false
		# atomic = true;

		# With this setting disabled, the OpenSC PKCS#11 module will initialize
		# the slots available when the application calls `C_GetSlotList`. With
		# this setting enabled, the slots will also get initialized when
		# C_GetSlotInfo is called.
		#
		# This setting is a workaround for Java which does not call
		# `C_GetSlotList` when configured with a static `slot` instead of
		# `slotListIndex`.
		#
		# Default: true
		# init_sloppy = false;

		# User PIN unblock style
		#    none:  PIN unblock is not possible with PKCS#11 API;
		#    set_pin_in_unlogged_session:  C_SetPIN() in unlogged session:
		#       PUK is passed as the 'OldPin' argument of the C_SetPIN() call.
		#    set_pin_in_specific_context:  C_SetPIN() in the CKU_SPECIFIC_CONTEXT logged session:
		#       PUK is passed as the 'OldPin' argument of the C_SetPIN() call.
		#    init_pin_in_so_session:  C_InitPIN() in CKU_SO logged session:
		#       User PIN 'UNBLOCK' is protected by SOPIN. (PUK == SOPIN).
		#       # Actually this style works only for the PKCS15 contents without SOPIN.
		#       # For those with SOPIN, this mode will be useful for the cards without
		#       #   modes 00 and 01 of ISO command 'RESET RETRY COUNTER'. --vt
		#
		# Default: none
		# user_pin_unblock_style = set_pin_in_unlogged_session;

		# Create slot for unblocking PIN with PUK
		# This way PKCS#11 API can be used to login with PUK and
		# change a PIN.
		# Warning: causes problems with some applications like
		# firefox and thunderbird. Thus turned off by default
		#
		# Default: false
		# create_puk_slot = true;

		# Symbolic names of PINs for which slots are created
		# 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 ennoying for some of widely used application,
		#   like FireFox. This configuration parameter allows one to select the PIN(s)
		#   for which PKCS#11 slot will be created.
		# Actually recognised following symbolic names:
		#  'user', 'sign', 'all'
		# Only PINs initialised, non-SoPIN, non-unblocking are associated with symbolic name.
		# 'user' is identified as first global or first local PIN.
		# 'sign' is identified as second PIN: first local, second global or second local.
		# 'all' slot created for all non-sopin, non-unblocking PINs,
		#   optionally for PUK (see option 'create_puk_slot')
		#
		# Default: all
		# create_slots_for_pins = "user,sign";
		# create_slots_for_pins = "sign";
		#
		# For the module to simulate the opensc-onepin module behavior the following option
		# must be set:
		# create_slots_for_pins = "user"
	}
}

app "C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe" {
	pkcs11 {
		slots_per_card = 1;
	}
}

# Used by OpenSC.tokend on Mac OS X only
app tokend {
	# The file to which debug log will be written
	# Default: /tmp/opensc-tokend.log
	#
	# debug_file = /Library/Logs/OpenSC.tokend.log

	framework tokend {
		# Score for OpenSC.tokend
		# The tokend with the highest score shall be used.
		# Default: 300
		#
		# score = 10;

		# Tokend ignore to read PIN protected certificate that is set SC_PKCS15_CO_FLAG_PRIVATE flag.
		# Default: true
		#
		# ignore_private_certificate = false;
	}
}

# Used by OpenSC minidriver on Windows only
app cardmod {
}