pkcs11 + linux
Добрый день.
Подскажите пожалуйста в чем может быть дело.
Пытаюсь используя PKCS#11 не аппаратно сгенерировать RSA пару, перед этим отформатировав токен:
$ pkcs15-init -E -p rutoken
winscard_clnt.c:3418:SCardCheckDaemonAvailability() PCSC Not Running
$ pkcs11-tool --keypairgen --key-type rsa:2048 --login --label "user" --id 1
winscard_clnt.c:3418:SCardCheckDaemonAvailability() PCSC Not Running
[opensc-pkcs11] asn1.c:1207:asn1_decode: mandatory ASN.1 object 'data' not found
[opensc-pkcs11] asn1.c:1219:asn1_decode: returning with: Required ASN.1 object not found
[opensc-pkcs11] pkcs15-data.c:112:sc_pkcs15_decode_dodf_entry: ASN.1 decoding failed: Required ASN.1 object not found
[opensc-pkcs11] pkcs15.c:1412:sc_pkcs15_parse_df: Error decoding DF entry: Required ASN.1 object not found
[opensc-pkcs11] pkcs15.c:871:__sc_pkcs15_search_objects: DF parsing failed: Required ASN.1 object not found
winscard_clnt.c:3418:SCardCheckDaemonAvailability() PCSC Not Running
[opensc-pkcs11] asn1.c:1207:asn1_decode: mandatory ASN.1 object 'data' not found
[opensc-pkcs11] asn1.c:1219:asn1_decode: returning with: Required ASN.1 object not found
[opensc-pkcs11] pkcs15-data.c:112:sc_pkcs15_decode_dodf_entry: ASN.1 decoding failed: Required ASN.1 object not found
[opensc-pkcs11] pkcs15.c:1412:sc_pkcs15_parse_df: Error decoding DF entry: Required ASN.1 object not found
[opensc-pkcs11] pkcs15.c:871:__sc_pkcs15_search_objects: DF parsing failed: Required ASN.1 object not found
[opensc-pkcs11] asn1.c:1207:asn1_decode: mandatory ASN.1 object 'data' not found
[opensc-pkcs11] asn1.c:1219:asn1_decode: returning with: Required ASN.1 object not found
[opensc-pkcs11] pkcs15-data.c:112:sc_pkcs15_decode_dodf_entry: ASN.1 decoding failed: Required ASN.1 object not found
[opensc-pkcs11] pkcs15.c:1412:sc_pkcs15_parse_df: Error decoding DF entry: Required ASN.1 object not found
[opensc-pkcs11] pkcs15.c:871:__sc_pkcs15_search_objects: DF parsing failed: Required ASN.1 object not found
[opensc-pkcs11] asn1.c:1207:asn1_decode: mandatory ASN.1 object 'data' not found
[opensc-pkcs11] asn1.c:1219:asn1_decode: returning with: Required ASN.1 object not found
[opensc-pkcs11] pkcs15-data.c:112:sc_pkcs15_decode_dodf_entry: ASN.1 decoding failed: Required ASN.1 object not found
[opensc-pkcs11] pkcs15.c:1412:sc_pkcs15_parse_df: Error decoding DF entry: Required ASN.1 object not found
[opensc-pkcs11] pkcs15.c:871:__sc_pkcs15_search_objects: DF parsing failed: Required ASN.1 object not found
error: PKCS11 function C_OpenSession failed: rv = CKR_TOKEN_NOT_PRESENT (0xe0)
Aborting.