Спасибо за раскрытие темы! Сегодня удалось наконец попробовать самостоятельно. К сожалению пока безуспешно. Пробовал на системах ROSA R8.1 и CentOS 7. В обоих случаях распаковывал deb-пакет с плагином госуслуг, кидал файлы в нужные директории и запускал postinst. После установки обновлённого пакета с pkcs11 в логах плагина (/var/log/ifc/ifc.log) появлялось следующее:
2017-10-31 16:35:08 INFO ****************** IFCPlugin 2.0.6.0 ******************
2017-10-31 16:35:08 INFO OS: X11, Browser: NPAPI
2017-10-31 16:35:08 INFO Current Page:
https://esia.gosuslugi.ru/idp/rlogin?cc=bp2017-10-31 16:35:08 INFO Plugin DLL: /usr/lib/mozilla/plugins/npIFCPlugin.so
2017-10-31 16:35:08 INFO *******************************************************
2017-10-31 16:35:08 INFO
2017-10-31 16:35:08 INFO
2017-10-31 16:35:08 INFO
2017-10-31 16:35:08 INFO
2017-10-31 16:35:10 INFO ********** START IFCPluginAPI::get_list_info_size() **********
2017-10-31 16:35:10 INFO Parameters: none
2017-10-31 16:35:10 DEBUG func: ifc_get_list_info
2017-10-31 16:35:10 DEBUG func: ifc_init_openssl with with INIT flag
2017-10-31 16:35:10 DEBUG ifc_init_openssl result [done]
2017-10-31 16:35:10 DEBUG config record [0]
2017-10-31 16:35:10 DEBUG config record [1]
2017-10-31 16:35:10 DEBUG func: list_keys_pkcs11
2017-10-31 16:35:10 DEBUG pkcs11_lib is 'libjcPKCS11.so', i_keys is not set
2017-10-31 16:35:10 DEBUG func: ifc_load_pkcs11_lib
2017-10-31 16:35:10 DEBUG module path: libjcPKCS11.so
2017-10-31 16:35:10 DEBUG No cached library found. Trying to load the new one
2017-10-31 16:35:10 DEBUG func: unix_load_pkcs11_lib
2017-10-31 16:35:10 DEBUG p11_module_path: libjcPKCS11.so
2017-10-31 16:35:10 DEBUG unix_load_pkcs11_lib result [0]
2017-10-31 16:35:10 DEBUG C_Initialize successfull
2017-10-31 16:35:10 DEBUG ifc_load_pkcs11_lib result [0]
2017-10-31 16:35:10 DEBUG slots count: [0]
2017-10-31 16:35:10 ERROR No connected tokens found
2017-10-31 16:35:10 DEBUG list_keys_pkcs11 result [0]
2017-10-31 16:35:10 DEBUG config record [2]
2017-10-31 16:35:10 DEBUG func: list_keys_pkcs11
2017-10-31 16:35:10 DEBUG pkcs11_lib is '/opt/cprocsp/lib/amd64/libcppkcs11.so', i_keys is not set
2017-10-31 16:35:10 DEBUG func: ifc_load_pkcs11_lib
2017-10-31 16:35:10 DEBUG module path: /opt/cprocsp/lib/amd64/libcppkcs11.so
2017-10-31 16:35:10 DEBUG No cached library found. Trying to load the new one
2017-10-31 16:35:10 DEBUG func: unix_load_pkcs11_lib
2017-10-31 16:35:10 DEBUG p11_module_path: /opt/cprocsp/lib/amd64/libcppkcs11.so
2017-10-31 16:35:10 DEBUG unix_load_pkcs11_lib result [0]
2017-10-31 16:35:10 ERROR C_Initialize failed, rc = 0x6 CKR_FUNCTION_FAILED
2017-10-31 16:35:10 DEBUG ifc_load_pkcs11_lib result [0]
2017-10-31 16:35:10 ERROR C_GetSlotList for slots_count error: [400] CKR_CRYPTOKI_NOT_INITIALIZED
2017-10-31 16:35:10 DEBUG list_keys_pkcs11 result [400]
2017-10-31 16:35:10 DEBUG config record [3]
2017-10-31 16:35:10 DEBUG func: list_keys_pkcs11
2017-10-31 16:35:10 DEBUG pkcs11_lib is 'rtPKCS11ECP.so', i_keys is not set
2017-10-31 16:35:10 DEBUG func: ifc_load_pkcs11_lib
2017-10-31 16:35:10 DEBUG module path: rtPKCS11ECP.so
2017-10-31 16:35:10 DEBUG No cached library found. Trying to load the new one
2017-10-31 16:35:10 DEBUG func: unix_load_pkcs11_lib
2017-10-31 16:35:10 DEBUG p11_module_path: rtPKCS11ECP.so
2017-10-31 16:35:10 DEBUG unix_load_pkcs11_lib result [0]
2017-10-31 16:35:10 DEBUG C_Initialize successfull
2017-10-31 16:35:10 DEBUG ifc_load_pkcs11_lib result [0]
2017-10-31 16:35:10 DEBUG slots count: [1]
2017-10-31 16:35:10 DEBUG GetSlotInfo [0]
2017-10-31 16:35:10 DEBUG GetTokenInfo [0]
2017-10-31 16:35:10 DEBUG list_keys_pkcs11 result [0]
2017-10-31 16:35:10 DEBUG config record [4]
2017-10-31 16:35:10 DEBUG config record [5]
2017-10-31 16:35:10 DEBUG config record [6]
2017-10-31 16:35:10 DEBUG config record [7]
2017-10-31 16:35:10 DEBUG ifc_get_list_info result [0]
2017-10-31 16:35:10 INFO >>> Success, founded 1 crypto
2017-10-31 16:35:10 INFO ********** END IFCPluginAPI::get_list_info_size() **********
2017-10-31 16:35:10 INFO ********** START IFCPluginAPI::get_list_info() **********
2017-10-31 16:35:10 INFO >>> Parameters
2017-10-31 16:35:10 INFO Index: 0
2017-10-31 16:35:10 INFO >>> Results for index 0
2017-10-31 16:35:10 INFO Alias: ruTokenECP
2017-10-31 16:35:10 INFO Description: Aktiv Rutoken ECP 00 00
2017-10-31 16:35:10 INFO Name: ����� ������� ���
2017-10-31 16:35:10 INFO Num: 0
2017-10-31 16:35:10 INFO Path: rtPKCS11ECP.so
2017-10-31 16:35:10 INFO Serial Number: 32656e3d
2017-10-31 16:35:10 INFO Type: pkcs11
2017-10-31 16:35:10 INFO ********** END IFCPluginAPI::get_list_info() **********
2017-10-31 16:35:10 INFO ********** START IFCPluginAPI::get_list_certs_size() **********
2017-10-31 16:35:10 INFO >>> Parameters
2017-10-31 16:35:10 INFO Crypto ID: ruTokenECP/0
2017-10-31 16:35:10 DEBUG func: ifc_get_list_certs
2017-10-31 16:35:10 DEBUG func: ifc_engine
2017-10-31 16:35:10 DEBUG func: ifc_init_pkcs11_engine
2017-10-31 16:35:10 DEBUG p11 lib name: rtPKCS11ECP.so, slot: 0, engine lib name: pkcs11_engine
2017-10-31 16:35:10 DEBUG func: ifc_load_pkcs11_lib
2017-10-31 16:35:10 DEBUG module path: rtPKCS11ECP.so
2017-10-31 16:35:10 DEBUG cached PKCS#11 library found
2017-10-31 16:35:10 DEBUG ifc_load_pkcs11_lib result [0]
2017-10-31 16:35:10 DEBUG Slot description: Aktiv Rutoken ECP 00 00
2017-10-31 16:35:10 DEBUG Token Serial Number: 32656e3d
2017-10-31 16:35:10 DEBUG func: load_pkcs11_engine
2017-10-31 16:35:10 DEBUG engine_path: pkcs11_engine
2017-10-31 16:35:10 DEBUG dynamic engine was loaded
2017-10-31 16:35:10 DEBUG engine library name was set to pkcs11_engine
2017-10-31 16:35:10 DEBUG engine ID was set to pkcs11_engine-ruTokenECP-0
2017-10-31 16:35:10 DEBUG engine was loaded
2017-10-31 16:35:10 DEBUG pkcs11 functions list was set
2017-10-31 16:35:10 ERROR OPEN_SESSION error: 23
2017-10-31 16:35:10 DEBUG load_pkcs11_engine result [23]
2017-10-31 16:35:10 DEBUG ifc_init_pkcs11_engine result [23]
2017-10-31 16:35:10 DEBUG ifc_engine result [23]
2017-10-31 16:35:10 DEBUG ifc_get_list_certs result [23]
2017-10-31 16:35:10 ERROR Error 23: PKCS11 Library Error
2017-10-31 16:35:10 INFO ********** END IFCPluginAPI::get_list_certs_size() **********
2017-10-31 16:35:16 INFO ********** START IFCPluginAPI::get_list_info_size() **********
2017-10-31 16:35:16 INFO Parameters: none
2017-10-31 16:35:16 DEBUG func: ifc_get_list_info
2017-10-31 16:35:16 DEBUG config record [0]
2017-10-31 16:35:16 DEBUG config record [1]
2017-10-31 16:35:16 DEBUG func: list_keys_pkcs11
2017-10-31 16:35:16 DEBUG pkcs11_lib is 'libjcPKCS11.so', i_keys is not set
2017-10-31 16:35:16 DEBUG func: ifc_load_pkcs11_lib
2017-10-31 16:35:16 DEBUG module path: libjcPKCS11.so
2017-10-31 16:35:16 DEBUG cached PKCS#11 library found
2017-10-31 16:35:16 DEBUG ifc_load_pkcs11_lib result [0]
2017-10-31 16:35:16 DEBUG slots count: [0]
2017-10-31 16:35:16 ERROR No connected tokens found
2017-10-31 16:35:16 DEBUG list_keys_pkcs11 result [0]
2017-10-31 16:35:16 DEBUG config record [2]
2017-10-31 16:35:16 DEBUG func: list_keys_pkcs11
2017-10-31 16:35:16 DEBUG pkcs11_lib is '/opt/cprocsp/lib/amd64/libcppkcs11.so', i_keys is not set
2017-10-31 16:35:16 DEBUG func: ifc_load_pkcs11_lib
2017-10-31 16:35:16 DEBUG module path: /opt/cprocsp/lib/amd64/libcppkcs11.so
2017-10-31 16:35:16 DEBUG cached PKCS#11 library found
2017-10-31 16:35:16 DEBUG ifc_load_pkcs11_lib result [0]
2017-10-31 16:35:16 ERROR C_GetSlotList for slots_count error: [400] CKR_CRYPTOKI_NOT_INITIALIZED
2017-10-31 16:35:16 DEBUG list_keys_pkcs11 result [400]
2017-10-31 16:35:16 DEBUG config record [3]
2017-10-31 16:35:16 DEBUG func: list_keys_pkcs11
2017-10-31 16:35:16 DEBUG pkcs11_lib is 'rtPKCS11ECP.so', i_keys is not set
2017-10-31 16:35:16 DEBUG func: ifc_load_pkcs11_lib
2017-10-31 16:35:16 DEBUG module path: rtPKCS11ECP.so
2017-10-31 16:35:16 DEBUG cached PKCS#11 library found
2017-10-31 16:35:16 DEBUG ifc_load_pkcs11_lib result [0]
2017-10-31 16:35:16 DEBUG slots count: [1]
2017-10-31 16:35:16 DEBUG GetSlotInfo [0]
2017-10-31 16:35:16 DEBUG GetTokenInfo [0]
2017-10-31 16:35:16 DEBUG list_keys_pkcs11 result [0]
2017-10-31 16:35:16 DEBUG config record [4]
2017-10-31 16:35:16 DEBUG config record [5]
2017-10-31 16:35:16 DEBUG config record [6]
2017-10-31 16:35:16 DEBUG config record [7]
2017-10-31 16:35:16 DEBUG ifc_get_list_info result [0]
2017-10-31 16:35:16 INFO >>> Success, founded 1 crypto
2017-10-31 16:35:16 INFO ********** END IFCPluginAPI::get_list_info_size() **********
2017-10-31 16:35:16 INFO ********** START IFCPluginAPI::get_list_info() **********
2017-10-31 16:35:16 INFO >>> Parameters
2017-10-31 16:35:16 INFO Index: 0
2017-10-31 16:35:16 INFO >>> Results for index 0
2017-10-31 16:35:16 INFO Alias: ruTokenECP
2017-10-31 16:35:16 INFO Description: Aktiv Rutoken ECP 00 00
2017-10-31 16:35:16 INFO Name: ����� ������� ���
2017-10-31 16:35:16 INFO Num: 0
2017-10-31 16:35:16 INFO Path: rtPKCS11ECP.so
2017-10-31 16:35:16 INFO Serial Number: 32656e3d
2017-10-31 16:35:16 INFO Type: pkcs11
2017-10-31 16:35:16 INFO ********** END IFCPluginAPI::get_list_info() **********
2017-10-31 16:35:16 INFO ********** START IFCPluginAPI::get_list_certs_size() **********
2017-10-31 16:35:16 INFO >>> Parameters
2017-10-31 16:35:16 INFO Crypto ID: ruTokenECP/0
2017-10-31 16:35:16 DEBUG func: ifc_get_list_certs
2017-10-31 16:35:16 DEBUG func: ifc_engine
2017-10-31 16:35:16 DEBUG func: ifc_init_pkcs11_engine
2017-10-31 16:35:16 DEBUG p11 lib name: rtPKCS11ECP.so, slot: 0, engine lib name: pkcs11_engine
2017-10-31 16:35:16 DEBUG func: ifc_load_pkcs11_lib
2017-10-31 16:35:16 DEBUG module path: rtPKCS11ECP.so
2017-10-31 16:35:16 DEBUG cached PKCS#11 library found
2017-10-31 16:35:16 DEBUG ifc_load_pkcs11_lib result [0]
2017-10-31 16:35:16 DEBUG Slot description: Aktiv Rutoken ECP 00 00
2017-10-31 16:35:16 DEBUG Token Serial Number: 32656e3d
2017-10-31 16:35:16 DEBUG func: load_pkcs11_engine
2017-10-31 16:35:16 DEBUG engine_path: pkcs11_engine
2017-10-31 16:35:16 DEBUG dynamic engine was loaded
2017-10-31 16:35:16 DEBUG engine library name was set to pkcs11_engine
2017-10-31 16:35:16 DEBUG engine ID was set to pkcs11_engine-ruTokenECP-0
2017-10-31 16:35:16 DEBUG engine was loaded
2017-10-31 16:35:16 DEBUG pkcs11 functions list was set
2017-10-31 16:35:16 DEBUG pkcs11 session was opened
2017-10-31 16:35:16 DEBUG func: pkcs11_engine_login
2017-10-31 16:35:16 DEBUG user pin is NULL
2017-10-31 16:35:16 DEBUG pkcs11_engine_login result [0]
2017-10-31 16:35:16 DEBUG load_pkcs11_engine result [0]
2017-10-31 16:35:16 DEBUG ifc_init_pkcs11_engine result [0]
2017-10-31 16:35:16 DEBUG ifc_engine result [0]
2017-10-31 16:35:16 DEBUG func: ifc_list_certificates_in_store
2017-10-31 16:35:16 DEBUG ifc_list_certificates_in_store result [0]
2017-10-31 16:35:16 DEBUG ifc_get_list_certs result [0]
2017-10-31 16:35:16 INFO >>> Success, founded 0 certificates
2017-10-31 16:35:16 INFO ********** END IFCPluginAPI::get_list_certs_size() **********
Судя по всему главная тут строка "C_Initialize failed, rc = 0x6 CKR_FUNCTION_FAILED", сама библиотека видимо не подгружается. Подскажите пожалуйста, с чем такая ошибка может быть связана. Устройство - Рутокен ЭЦП.