Статус: Сотрудник
Группы: Участники
Зарегистрирован: 30.06.2016(UTC) Сообщений: 3,448 Сказал «Спасибо»: 53 раз Поблагодарили: 791 раз в 731 постах
|
Автор: luft Помогите, пожалуйста, разобраться с проблемой! При входи в госуслуги предлагается выбрать сертификат, сертификат виден, выбирается, предлагается ввести пин, после чего возвращает на окно входа. Астра Линукс Орел, КриптоПро 4 9944, IFCPlugin 3.1.0.0. Настраивал по инструкции от "Астры" (по другим тоже пробовал, конфиги из данной ветки подсовывал), сертификат в контейнере. Вот лог IFC:
2020-01-15 10:23:52:IFC:list_keys_pkcs11:STARTED 2020-01-15 10:23:52:IFC:list_keys_pkcs11:pkcs11_lib is 'libjcPKCS11-2.so.2.4.0', i_keys is not set 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:STARTED 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:module path: libjcPKCS11-2.so.2.4.0 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:cached PKCS#11 library found 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:C_Initialize already initialized 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:result [0] 2020-01-15 10:23:52:IFC:list_keys_pkcs11:slots count: [0] 2020-01-15 10:23:52:IFC:list_keys_pkcs11:No connected tokens found 2020-01-15 10:23:52:IFC:list_keys_pkcs11:result [0] 2020-01-15 10:23:52:IFC:ifc_get_list_info:config record [7] 2020-01-15 10:23:52:IFC:list_keys_pkcs11:STARTED 2020-01-15 10:23:52:IFC:list_keys_pkcs11:pkcs11_lib is 'librtpkcs11ecp.so', i_keys is not set 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:STARTED 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:module path: librtpkcs11ecp.so 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:cached PKCS#11 library found 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:C_Initialize already initialized 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:result [0] 2020-01-15 10:23:52:IFC:list_keys_pkcs11:slots count: [0] 2020-01-15 10:23:52:IFC:list_keys_pkcs11:No connected tokens found 2020-01-15 10:23:52:IFC:list_keys_pkcs11:result [0] 2020-01-15 10:23:52:IFC:ifc_get_list_info:config record [8] 2020-01-15 10:23:52:IFC:list_keys_pkcs11:STARTED 2020-01-15 10:23:52:IFC:list_keys_pkcs11:pkcs11_lib is '/opt/cprocsp/lib/amd64/libcppkcs11.so', i_keys is not set 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:STARTED 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:module path: /opt/cprocsp/lib/amd64/libcppkcs11.so 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:cached PKCS#11 library found 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:C_Initialize already initialized 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:result [0] 2020-01-15 10:23:52:IFC:list_keys_pkcs11:slots count: [1] 2020-01-15 10:23:52:IFC:get_slot_and_token_info:STARTED 2020-01-15 10:23:52:IFC:get_slot_and_token_info:GetSlotInfo [17] 2020-01-15 10:23:52:IFC:get_slot_and_token_info:Slot description: "CryptoPro Slot" 2020-01-15 10:23:52:IFC:get_slot_and_token_info:C_GetTokenInfo [17] 2020-01-15 10:23:52:IFC:get_slot_and_token_info:Token Serial Number: "0000000000000000" 2020-01-15 10:23:52:IFC:get_slot_and_token_info:Token Model: "CPPKCS 3" 2020-01-15 10:23:52:IFC:get_slot_and_token_info:result [0] 2020-01-15 10:23:52:IFC:check_token_support:STARTED 2020-01-15 10:23:52:IFC:check_token_support:result [0] 2020-01-15 10:23:52:IFC:list_keys_pkcs11:result [0] 2020-01-15 10:23:52:IFC:ifc_get_list_info:config record [9] 2020-01-15 10:23:52:IFC:list_keys_pkcs11:STARTED 2020-01-15 10:23:52:IFC:list_keys_pkcs11:pkcs11_lib is '/opt/cprocsp/lib/amd64/libcppkcs11.so', i_keys is not set 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:STARTED 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:module path: /opt/cprocsp/lib/amd64/libcppkcs11.so 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:cached PKCS#11 library found 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:C_Initialize already initialized 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:result [0] 2020-01-15 10:23:52:IFC:list_keys_pkcs11:slots count: [1] 2020-01-15 10:23:52:IFC:get_slot_and_token_info:STARTED 2020-01-15 10:23:52:IFC:get_slot_and_token_info:GetSlotInfo [17] 2020-01-15 10:23:52:IFC:get_slot_and_token_info:Slot description: "CryptoPro Slot" 2020-01-15 10:23:52:IFC:get_slot_and_token_info:C_GetTokenInfo [17] 2020-01-15 10:23:52:IFC:get_slot_and_token_info:Token Serial Number: "0000000000000000" 2020-01-15 10:23:52:IFC:get_slot_and_token_info:Token Model: "CPPKCS 3" 2020-01-15 10:23:52:IFC:get_slot_and_token_info:result [0] 2020-01-15 10:23:52:IFC:check_token_support:STARTED 2020-01-15 10:23:52:IFC:check_token_support:result [0] 2020-01-15 10:23:52:IFC:list_keys_pkcs11:result [0] 2020-01-15 10:23:52:IFC:ifc_get_list_info:config record [10] 2020-01-15 10:23:52:IFC:list_keys_pkcs11:STARTED 2020-01-15 10:23:52:IFC:list_keys_pkcs11:pkcs11_lib is '/opt/cprocsp/lib/amd64/libcppkcs11.so', i_keys is not set 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:STARTED 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:module path: /opt/cprocsp/lib/amd64/libcppkcs11.so 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:cached PKCS#11 library found 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:C_Initialize already initialized 2020-01-15 10:23:52:IFC:ifc_load_pkcs11_lib:result [0] 2020-01-15 10:23:52:IFC:list_keys_pkcs11:slots count: [1] 2020-01-15 10:23:52:IFC:get_slot_and_token_info:STARTED 2020-01-15 10:23:52:IFC:get_slot_and_token_info:GetSlotInfo [17] 2020-01-15 10:23:52:IFC:get_slot_and_token_info:Slot description: "CryptoPro Slot" 2020-01-15 10:23:52:IFC:get_slot_and_token_info:C_GetTokenInfo [17] 2020-01-15 10:23:52:IFC:get_slot_and_token_info:Token Serial Number: "0000000000000000" 2020-01-15 10:23:52:IFC:get_slot_and_token_info:Token Model: "CPPKCS 3" 2020-01-15 10:23:52:IFC:get_slot_and_token_info:result [0] 2020-01-15 10:23:52:IFC:check_token_support:STARTED 2020-01-15 10:23:52:IFC:check_token_support:result [0] 2020-01-15 10:23:52:IFC:list_keys_pkcs11:result [0] 2020-01-15 10:23:52:IFC:ifc_get_list_info:result [0] 2020-01-15 10:23:52:WEBLIB:process_request:Response string(length = 814) = "{"error_code":0,"ifc_list":[{"alg":"gost2001","alias":"CPPKCS11_2001","description":"CryptoPro Slot","model":"CPPKCS 3","name":"CPPKCS11_2001","num":"17","path":"/opt/cprocsp/lib/amd64/libcppkcs11.so","serial_number":"0000000000000000","skip_pkcs11_list":"","type":"pkcs11"},{"alg":"gost2012_256","alias":"CPPKCS11_2012_256","description":"CryptoPro Slot","model":"CPPKCS 3","name":"CPPKCS11_2012_256","num":"17","path":"/opt/cprocsp/lib/amd64/libcppkcs11.so","serial_number":"0000000000000000","skip_pkcs11_list":"","type":"pkcs11"},{"alg":"gost2012_512","alias":"CPPKCS11_2012_512","description":"CryptoPro Slot","model":"CPPKCS 3","name":"CPPKCS11_2012_512","num":"17","path":"/opt/cprocsp/lib/amd64/libcppkcs11.so","serial_number":"0000000000000000","skip_pkcs11_list":"","type":"pkcs11"}],"ifc_list_length":3}" 2020-01-15 10:23:52:WEBLIB:process_request:Request string(length = 213) = "{"func_name":"sign","params":{"containerId":"CPPKCS11_2001/17/59B8D24C7017A1A803201951D82E0318BB3D13FE","userPin":"********","inDataType":1,"data":"**********","hashType":1,"signType":3,"cspUI":1,"outDataType":1}}" 2020-01-15 10:23:52:IFC:ifc_sign:STARTED 2020-01-15 10:23:52:IFC:ifc_sign:data type: 1, signature type: 3, encode_to_base64: 1 2020-01-15 10:23:52:IFC:ifc_engine:STARTED 2020-01-15 10:23:52:IFC:ifc_init_pkcs11_engine:STARTED 2020-01-15 10:23:52:IFC:ifc_init_pkcs11_engine:p11 lib name: /opt/cprocsp/lib/amd64/libcppkcs11.so, slot: 17, engine lib name: pkcs11_engine 2020-01-15 10:23:52:IFC:ifc_init_pkcs11_engine:cached crypto slot found 2020-01-15 10:23:52:IFC:pkcs11_engine_login:STARTED 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:make_login:STARTED 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:make_login:PASSED 2020-01-15 10:23:52:IFC:pkcs11_engine_login:pkcs11 login was proceeded 2020-01-15 10:23:52:IFC:pkcs11_engine_login:result [0] 2020-01-15 10:23:52:IFC:ifc_init_pkcs11_engine:result [0] 2020-01-15 10:23:52:IFC:ifc_engine:result [0] 2020-01-15 10:23:52:IFC:do_work_sign_cms:STARTED 2020-01-15 10:23:52:IFC:ifc_engine:STARTED 2020-01-15 10:23:52:IFC:ifc_init_pkcs11_engine:STARTED 2020-01-15 10:23:52:IFC:ifc_init_pkcs11_engine:p11 lib name: /opt/cprocsp/lib/amd64/libcppkcs11.so, slot: 17, engine lib name: pkcs11_engine 2020-01-15 10:23:52:IFC:ifc_init_pkcs11_engine:cached crypto slot found 2020-01-15 10:23:52:IFC:ifc_init_pkcs11_engine:result [0] 2020-01-15 10:23:52:IFC:ifc_engine:result [0] 2020-01-15 10:23:52:IFC:find_cert_in_store_by_id:STARTED 2020-01-15 10:23:52:IFC:find_cert_in_store_by_id:ID to find: 59B8D24C7017A1A803201951D82E0318BB3D13FE 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:gost_store_list_start:STARTED 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:gost_store_list_start:PASSED 2020-01-15 10:23:52:IFC:find_cert_in_store_by_id:STORE_list_certificate_start done 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:gost_store_list_next:STARTED 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:make_object_to_return:STARTED 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:make_x509_by_handle:STARTED 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:make_x509_by_handle:PASSED 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:make_object_to_return:PASSED 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:gost_store_list_next:PASSED 2020-01-15 10:23:52:IFC:find_cert_in_store_by_id:STORE_list_certificate_next done 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:gost_store_list_end:STARTED 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:gost_store_list_end:PASSED 2020-01-15 10:23:52:IFC:find_cert_in_store_by_id:STORE_list_certificate_end done 2020-01-15 10:23:52:IFC:find_cert_in_store_by_id:result [found cert handle] 2020-01-15 10:23:52:IFC:get_priv_key_by_id:STARTED 2020-01-15 10:23:52:IFC:get_priv_key_by_id:ID to find: 59B8D24C7017A1A803201951D82E0318BB3D13FE 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:gost_store_list_start:STARTED 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:gost_store_list_start:PASSED 2020-01-15 10:23:52:IFC:get_priv_key_by_id:STORE_list_private_key_start done 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:gost_store_list_next:STARTED 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:gost_store_list_next:No such objects 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:gost_store_list_next:PASSED 2020-01-15 10:23:52:IFC:get_priv_key_by_id:result [NULL] 2020-01-15 10:23:52:IFC:do_work_sign_cms:ERROR:get_priv_key_by_id error:sign_cms.c:297 2020-01-15 10:23:52:IFC:do_work_sign_cms:result [1] 2020-01-15 10:23:52:IFC:ifc_p11_logout:STARTED 2020-01-15 10:23:52:IFC:ifc_engine:STARTED 2020-01-15 10:23:52:IFC:ifc_init_pkcs11_engine:STARTED 2020-01-15 10:23:52:IFC:ifc_init_pkcs11_engine:p11 lib name: /opt/cprocsp/lib/amd64/libcppkcs11.so, slot: 17, engine lib name: pkcs11_engine 2020-01-15 10:23:52:IFC:ifc_init_pkcs11_engine:cached crypto slot found 2020-01-15 10:23:52:IFC:ifc_init_pkcs11_engine:result [0] 2020-01-15 10:23:52:IFC:ifc_engine:result [0] 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:make_logout:STARTED 2020-01-15 10:23:52:pkcs11_engine-CPPKCS11_2001-17:make_logout:PASSED 2020-01-15 10:23:52:IFC:ifc_p11_logout:result [0] 2020-01-15 10:23:52:IFC:ifc_sign:result [1] 2020-01-15 10:23:52:WEBLIB:process_request:Response string(length = 16) = "{"error_code":1}"
Здравствуйте. Свели информацию из этой ветки форума в небольшую инструкцию. Попробуйте воспользоваться ей. |