Skip to content

Instantly share code, notes, and snippets.

@tgreil
Last active October 27, 2022 14:55
Show Gist options
  • Save tgreil/cfda9fb2cd041dfcf37eec70d7df0022 to your computer and use it in GitHub Desktop.
Save tgreil/cfda9fb2cd041dfcf37eec70d7df0022 to your computer and use it in GitHub Desktop.
app default {
debug = 3;
debug_file = /tmp/opensc-debug.log;
card_drivers = iasecc;
force_card_driver = iasecc;
card_atr 3b:df:18:ff:81:91:fe:1f:c3:00:31:38:64:47:90:ec:c2:73:14:01:50:82:90:00:ba {
type = 25004;
driver = "iasecc";
name = "Card";
}
}
app onepin-opensc-pkcs11 {
pkcs11 {
max_virtual_slots = 4;
slots_per_card = 1;
}
}
pam_pkcs11 {
nullok = false;
debug = true;
use_first_pass = false;
try_first_pass = false;
use_authtok = true;
without_login = true;
use_pkcs11_module = opensc;
pkcs11_module opensc {
module = /opt/opensc/lib/onepin-opensc-pkcs11.so;
description = "OpenSC PKCS#11 module";
slot_num = 0,
ca_dir = /etc/pam_pkcs11/cacerts;
crl_dir = /etc/pam_pkcs11/crls;
cert_policy = crl_offline; # bug
token_type = "Smart card";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment