Ключевое слово в защите информации
КЛЮЧЕВОЕ СЛОВО
в защите информации
Получить ГОСТ TLS-сертификат для домена (SSL-сертификат)
Добро пожаловать, Гость! Чтобы использовать все возможности Вход или Регистрация.

Уведомление

Icon
Error

Опции
К последнему сообщению К первому непрочитанному
Offline Максим Коршиков  
#1 Оставлено : 12 октября 2021 г. 19:53:02(UTC)
Максим Коршиков

Статус: Новичок

Группы: Участники
Зарегистрирован: 12.10.2021(UTC)
Сообщений: 3

Задача - внедрить на проекте интеграцию с КриптоПро и функционал отсоединенной подписи файлов в формате base64 с помощью КриптоПро ЭЦП Browser plug-in.

Следую инструкции https://docs.cryptopro.r...in-samples-sign-detached
Использую метод SignCreate для создания подписи

В итоге получаю ошибку - "Не удается построить цепочку сертификатов для доверенного корневого центра. (0x800B010A)"
Предварительно получил тестовый сертификат на странице https://www.cryptopro.ru/certsrv/
При этом выбираю тот же самый сертификат в утилите cptools КриптоПро - всё подписывается. На странице https://cryptopro.ru/sit...ge/cades_bes_sample.html тоже с подписью всё ок.
Установил КриптоАрм, КриптоПро CSP 5.0 и КриптоПро ЭЦП Browser plug-in.

Прошу помощи в решении проблемы с этой ошибкой.

Код:
00000018	6.52331161	[10172] <cspi>Thread:function text xcode(dcode) (file:line)level: 0x1	
00000019	6.52488327	[10172] function text level: 0x1	
00000020	6.53664827	[10172] <cpext>Thread:function text xcode(dcode) (file:line)level: 0x1	
00000021	6.53882360	[10172] cades.dll: {15116} /CadesSignMessage/ cades.cpp(2686) : (pSignPara=0x0029F954, fDetachedSignature=0, cToBeSigned=1, rgpbToBeSigned=0x0029F968, rgcbToBeSigned=0x0029F96C, ppSignedBlob=0x0029F9A0)	
00000022	6.54950047	[10172] pkivalidator.dll: {15116} /InstallSSLVerifyCertificateChainPolicy/ pkivalidator.cpp(117) : CERT_CHAIN_POLICY_SSL oid successfully attached to CertDllVerifySSLCertificateChainPolicy. pkivalidator.dll will never be unloaded.	
00000023	6.54954672	[10172] pkivalidator.dll: {15116} /CertDllVerifySignatureCertificateChainPolicy/ certdllverifycertificatechainpolicy.cpp(56) : Start	
00000024	6.54959631	[10172] pkivalidator.dll: {15116} /CheckInitAndGetExtraStatus/ reporterror.h(205) : pExtraStatus = 0x00000000	
00000025	6.54964209	[10172] pkivalidator.dll: {15116} /CheckAndGetExtraPara/ reporterror.h(169) : pExtraPara = 0x00000000	
00000026	6.54968548	[10172] pkivalidator.dll: {15116} /CertDllVerifyPrivateKeyUsagePeriodCertificateChainPolicy/ certdllverifycertificatechainpolicy.cpp(49) : Start	
00000027	6.54973269	[10172] pkivalidator.dll: {15116} /CheckInitAndGetExtraStatus/ reporterror.h(205) : pExtraStatus = 0x00000000	
00000028	6.54976034	[10172] pkivalidator.dll: {15116} /CheckAndGetExtraPara/ reporterror.h(169) : pExtraPara = 0x00000000	
00000029	6.54978943	[10172] pkivalidator.dll: {15116} /CertDllVerifyBasicConstraintsCertificateChainPolicy/ certdllverifycertificatechainpolicy.cpp(63) : Start	
00000030	6.54983282	[10172] pkivalidator.dll: {15116} /ReportError/ reporterror.h(56) : No error encountered. Other checks can be performed - returning false.	
00000031	6.54986191	[10172] pkivalidator.dll: {15116} /CertDllVerifyCertificateChainPolicyProxy/ certdllverifycertificatechainpolicy.cpp(31) : Finish. Returning TRUE.	
00000032	6.54989004	[10172] pkivalidator.dll: {15116} /ReportError/ reporterror.h(56) : No error encountered. Other checks can be performed - returning false.	
00000033	6.54993677	[10172] pkivalidator.dll: {15116} /PkiValidatorGetParameterDword/ pkivalidatorgetparameter.h(29) : PkiValidatorGetParameterDword: RegOpenKeyEx error: 0x2	
00000034	6.54996586	[10172] pkivalidator.dll: {15116} /CertDllVerifyCertificateChainPolicyProxy/ certdllverifycertificatechainpolicy.cpp(31) : Finish. Returning TRUE.	
00000035	6.54999447	[10172] pkivalidator.dll: {15116} /ReportError/ reporterror.h(56) : No error encountered. Other checks can be performed - returning false.	
00000036	6.55002785	[10172] pkivalidator.dll: {15116} /CertDllVerifyCertificateChainPolicyProxy/ certdllverifycertificatechainpolicy.cpp(31) : Finish. Returning TRUE.	
00000037	6.55008221	[10172] cades.dll: {15116} /CadesSignMessageImpl/ cades.cpp(2553) : Signer updating start	
00000038	6.55011606	[10172] cades.dll: {15116} /CadesSignMessageImpl/ cades.cpp(2556) :  Hash algorithm deduced	
00000039	6.55016232	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImplNamespace::SigningTimeAttributeExists/ cades.cpp(174) : (pAttr=0)	
00000040	6.55019045	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImplNamespace::AttributeExists/ cades.cpp(156) : (pAttr=0)	
00000041	6.55022192	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImplNamespace::UpdateSignedAttributes/ cades.cpp(405) :  Attributes copied	
00000042	6.55025053	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImplNamespace::UpdateSignedAttributes/ cades.cpp(408) :  Signer does not have any of signing-certificate attributes	
00000043	6.55090046	[10172] <cng>Thread:function text xcode(dcode) (file:line)level: 0x1	
00000044	6.55162191	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImplNamespace::UpdateSignedAttributes/ cades.cpp(412) :  signing-certificate(-v2) attribute assembled	
00000045	6.55165625	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImplNamespace::UpdateSignedAttributes/ cades.cpp(416) :  Signer does not have signingTime attribute	
00000046	6.55172110	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImplNamespace::UpdateSignedAttributes/ cades.cpp(421) :  signingTime attribute assembled	
00000047	6.55175257	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImplNamespace::UpdateSignedAttributes/ cades.cpp(426) :  Signer is updated successfully	
00000048	6.55179119	[10172] cades.dll: {15116} /CadesMsgOpenToEncode/ cades.cpp(522) : (dwMsgEncodingType=0x00010001, dwFlags=0x00000000, pvMsgEncodeInfo=0x0029F454, pszInnerContentObjID=0, pStreamInfo=0x00000000)	
00000049	6.55182171	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImpl/ cades.cpp(464) : Start	
00000050	6.55185032	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImpl/ cades.cpp(468) : Input parameters checked	
00000051	6.55194330	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImpl/ cades.cpp(484) : Copy of input structures is ready	
00000052	6.55197382	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImpl/ cades.cpp(490) : Signers updating start	
00000053	6.55200195	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImpl/ cades.cpp(495) : Signer #0	
00000054	6.55254126	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImpl/ cades.cpp(500) :  Certificates equality checked	
00000055	6.55259657	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImplNamespace::CheckAlgorithms/ cades.cpp(437) :  Signature algoritm OID info is found: 1.2.643.7.1.1.3.2	
00000056	6.55262804	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImplNamespace::DeduceHashAlgorithm/ cades.cpp(129) : (szHashAlgorithm=1.2.643.7.1.1.2.2)	
00000057	6.55265713	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImpl/ cades.cpp(503) :  Hash algorithm deduced	
00000058	6.55268669	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImplNamespace::SigningTimeAttributeExists/ cades.cpp(169) : (pAttr->pszObjId=1.2.840.113549.1.9.5)	
00000059	6.55271578	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImplNamespace::AttributeExists/ cades.cpp(151) : (pAttr->pszObjId=1.2.840.113549.1.9.16.2.47)	
00000060	6.55274534	[10172] cades.dll: {15116} /CadesMsgOpenToEncodeImpl/ cades.cpp(510) : Calling CryptMsgOpenToEncode()	
00000061	6.55284405	[10172] cades.dll: {15116} /CadesMsgOpenToEncode/ cades.cpp(553) : (hMsg=0x055336D0, GetLastError=0x00000000)	
00000062	6.56684303	[10172] <capi20>0x3b0c:_CryptMsgGetParam!failed: LastError = 0xEA (:1511)	
00000063	6.57759380	[10172] cades.dll: {15116} /CadesMsgEnhanceSignature/ cades.cpp(1559) : (hCryptMsg=0x055336D0, dwSignatureIndex=0, pCadesSignPara=0x0029F42C)	
00000064	6.57767200	[10172] cades.dll: {15116} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1250) : Input parameters checked	
00000065	6.57813215	[10172] cades.dll: {15116} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1254) : Signer certificate ID found	
00000066	6.57821417	[10172] cades.dll: {15116} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1271) : pSignerCert=0x0061C9F8	
00000067	6.57834911	[10172] cades.dll: {15116} /CadesMsgGetType/ cadesmsggettype.cpp(138) : (hCryptMsg=0x055336D0, dwSignatureIndex=0, pdwCadesType=0x0029EED8)	
00000068	6.57843065	[10172] <capi20>0x3b0c:_CryptMsgGetParam!failed: LastError = 0xEA (:1511)	
00000069	6.57849312	[10172] cades.dll: {15116} /CadesMsgGetType/ cadesmsggettype.cpp(163) : (res=1, GetLastError=0x00000000	
00000070	6.57853937	[10172] cades.dll: {15116} /CadesMsgEnhanceSignatureImpl/ cades.cpp(1322) : Hash algorithm deduced	
00000071	6.57863712	[10172] cades.dll: {15116} /CadesMsgEnhanceSignatureImplNamespace::ExtractSignature/ cades.cpp(602) : Signature extracted via CMSG_ENCRYPTED_DIGEST	
00000072	6.58341026	[5868] CClientClient::SendEnumerateExRequest(): WaitForCompletion() returned with error 0x00000103	
00000073	6.59675217	[10172] tspcli.dll: {15116} /CryptoPro::PKI::TSP::Client::CRequest::Impl::CheckPolicies/ tsprequest_impl.cpp(196) : Checking policies...	
00000074	6.59680128	[10172] tspcli.dll: {15116} /CryptoPro::PKI::TSP::Client::CRequest::Impl::CheckPolicies/ tsprequest_impl.cpp(282) : Checking policies... OK.	
00000075	6.59684658	[10172] tspcli.dll: {15116} /CryptoPro::PKI::TSP::Client::CRequest::Impl::MakeRequest/ tsprequest_impl.cpp(152) : Making request...	
00000076	6.59692812	[10172] tspcli.dll: {15116} /CryptoPro::PKI::TSP::Client::CRequest::Impl::MakeRequest/ tsprequest_impl.cpp(172) : Initializing request...	
00000077	6.59747410	[10172] tspcli.dll: {15116} /CryptoPro::PKI::TSP::Client::CRequest::Impl::MakeRequest/ tsprequest_impl.cpp(186) : Encoding request...	
00000078	6.59838581	[10172] tspcli.dll: {15116} /CryptoPro::PKI::TSP::Client::CRequest::Impl::MakeRequest/ tsprequest_impl.cpp(190) : Making request... OK.	
00000079	6.59937382	[10172] 21:52:07.477 ::WinHttpOpen("Crypto-Pro tspcli.dll", WINHTTP_ACCESS_TYPE_NO_PROXY (1), "", "", 0x0) 	
00000080	6.59942245	[10172] 21:52:07.477 ::winhttp-dll added a reference to winhttp.dll (via LoadLibrary() call) 	
00000081	6.60158682	[10172] 21:52:07.479 ::thread-pool created 	
00000082	6.60161686	[10172] 21:52:07.479 ::thread pool initialized successfully 	
00000083	6.60166407	[10172] 21:52:07.479 ::_SvcsStartup() succeeded; async-count = 1 	
00000084	6.60172224	[10172] 21:52:07.479 ::WinHttpOpen() returning handle 0x56e9678 	
00000085	6.60176754	[10172] 21:52:07.479 ::WinHttpGetIEProxyConfigForCurrentUser(0x29e218) 	
00000086	6.60628843	[10172] 21:52:07.484 ::WinHttpGetIEProxyConfigForCurrentUser() returning TRUE 	
00000087	6.60639000	[10172] 21:52:07.484 ::WinHttpConnect(0x56e9678, "cryptopro.ru", 80, 0x0) 	
00000088	6.60788250	[10172] 21:52:07.485 ::Indicate Status 0x56e9760, 0x0, WINHTTP_CALLBACK_STATUS_HANDLE_CREATED (1024), 0x29e190 [0x56e9760], 4 	
00000089	6.60793447	[10172] 21:52:07.485 ::WinHttpConnect() returning handle 0x56e9760 	
00000090	6.60800076	[10172] 21:52:07.485 ::WinHttpOpenRequest(0x56e9760, "POST", "tsp/", "", "", 0x0, 0x00000000) 	
00000091	6.60805082	[10172] 21:52:07.485 ::Indicate Status 0x535fc80, 0x0, WINHTTP_CALLBACK_STATUS_HANDLE_CREATED (1024), 0x29e144 [0x535fc80], 4 	
00000092	6.60809708	[10172] 21:52:07.485 ::WinHttpCreateUrl(0x29e0e0, 0x0, 0x0, 0x29e130) 	
00000093	6.60814571	[10172] 21:52:07.485 ::    WinHttpCreateUrl(); URL = (null), URL Length = 0 	
00000094	6.60817385	[10172] 21:52:07.486 ::    WinHttpCreateUrl: error 122 [ERROR_INSUFFICIENT_BUFFER] 	
00000095	6.60820055	[10172] 21:52:07.486 ::WinHttpCreateUrl() returning FALSE 	
00000096	6.60822821	[10172] 21:52:07.486 ::WinHttpCreateUrl(0x29e0e0, 0x0, 0x52fbc40, 0x29e130) 	
00000097	6.60825682	[10172] 21:52:07.486 ::    WinHttpCreateUrl(); URL = http://cryptopro.ru/tsp/, URL Length = 24 	
00000098	6.60828304	[10172] 21:52:07.486 ::WinHttpCreateUrl() returning TRUE 	
00000099	6.60832548	[10172] 21:52:07.486 ::WinHttpOpenRequest() returning handle 0x535fc80 	
00000100	6.60836887	[10172] 21:52:07.486 ::WinHttpSetOption(0x535fc80, WINHTTP_OPTION_AUTOLOGON_POLICY (77), 0x29e530 [0x2], 4) 	
00000101	6.60839653	[10172] 21:52:07.486 ::WinHttpSetOption() returning TRUE 	
00000102	6.60844135	[10172] 21:52:07.486 ::WinHttpSendRequest(0x535fc80, "Content-type: application/timestamp-query", -1, 0x2618400, 66, 66, 0) 	
00000103	6.60847139	[10172] 21:52:07.486 ::WinHttpAddRequestHeaders(0x535fc80, "Content-type: application/timestamp-query", 41, 0x20000000) 	
00000104	6.60850477	[10172] 21:52:07.486 ::WinHttpAddRequestHeaders() returning TRUE 	
00000105	6.60912228	[10172] 21:52:07.486 ::usr-req 0555A220 transitioning from state _READY to state _SENDING_RECVING 	
00000106	6.60916471	[10172] 21:52:07.487 ::sys-req added the 'Content-Length: 66' header 	
00000107	6.60922146	[10172] 21:52:07.487 ::sys-req updates BytesToSend to 0 	
00000108	6.60926962	[10172] 21:52:07.487 ::sys-req transitioning from state _INIT to state _SENDING 	
00000109	6.60931921	[10172] 21:52:07.487 ::current thread is not impersonating 	
00000110	6.60936928	[10172] 21:52:07.487 ::sys-sender calling HttpSendHttpRequest(overlapped = 05354900) 	
00000111	6.60941553	[10172] 21:52:07.487 ::sys-sender transitioning from state  _INIT to state  _SENDING 	
00000112	6.60948467	[10172] 21:52:07.487 ::usr-req 0555A220 received OnDnsResolvingName callback 	
00000113	6.60958767	[10172] 21:52:07.487 ::sys-req pends send-request 	
00000114	6.60961723	[10172] 21:52:07.487 ::usr-req 0555A220 blocks waiting for async to complete... 	
00000115	6.61238623	[10172] 21:52:07.490 ::usr-req 0555A220 received OnDnsNameResolved callback 	
00000116	6.61247015	[10172] 21:52:07.490 ::usr-req 0555A220 received OnTcpConnecting callback 	
00000117	6.63227272	[10172] 21:52:07.510 ::usr-req 0555A220 received OnTcpConnected callback 	
00000118	6.63237476	[10172] 21:52:07.510 ::usr-req 0555A220 received OnSendingRequest callback 	
00000119	6.63256979	[10172] 21:52:07.510 ::usr-req 0555A220 received OnRequestSent callback 	
00000120	6.67845869	[10172] 21:52:07.555 ::  <c-b> an async I/O operation completes (overlapped = 05354900, #bytes/info = 0, error = ERROR_SUCCESS (0)) 	
00000121	6.67860126	[10172] 21:52:07.555 ::sys-sender processing HttpSendHttpRequest completion (error-cdoe = ERROR_SUCCESS (0x0), #bytes = 0, overlapped = 05354900) 	
00000122	6.67868471	[10172] 21:52:07.555 ::sys-sender sent a request successfully 	
00000123	6.67876053	[10172] 21:52:07.555 ::sys-req completing a send-request call (error = ERROR_SUCCESS (0)) 	
00000124	6.67883539	[10172] 21:52:07.555 ::usr-req 0555A220 received OnSendRequest callback; error = ERROR_SUCCESS (0) 	
00000125	6.67891359	[10172] 21:52:07.555 ::usr-req 0555A220 signals sync caller 0530A300 (api = 5, error = ERROR_SUCCESS (0), # bytes = 66) 	
00000126	6.67900085	[10172] 21:52:07.555 ::... async completed (result = ERROR_SUCCESS (0)); usr-req unblocked 	
00000127	6.67908525	[10172] 21:52:07.555 ::WinHttpSendRequest() returning TRUE 	
00000128	6.67921305	[10172] 21:52:07.555 ::WinHttpReceiveResponse(0x535fc80, 0x0) 	
00000129	6.67929554	[10172] 21:52:07.555 ::sys-recver starts in _INIT state 	
00000130	6.67937183	[10172] 21:52:07.555 ::current thread is not impersonating 	
00000131	6.67944908	[10172] 21:52:07.555 ::sys-recver processing WebReceiveHttpResponse completion (error-cdoe = ERROR_SUCCESS (0x0), overlapped = 05354900)) 	
00000132	6.67952013	[10172] 21:52:07.555 ::sys-recver has received response from WebIO 	
00000133	6.67959261	[10172] 21:52:07.555 ::sys-recver returning ERROR_SUCCESS (0) from RecvResponse() 	
00000134	6.67967701	[10172] 21:52:07.555 ::sys-req completes recv-headers inline (sync); error = ERROR_SUCCESS (0) 	
00000135	6.67974997	[10172] 21:52:07.555 ::usr-req 0555A220 recved final status code 200 	
00000136	6.67982244	[10172] 21:52:07.555 ::usr-req 0555A220 transitioning from state _SENDING_RECVING to state _HEADERS_RECVED 	
00000137	6.67989826	[10172] 21:52:07.555 ::WinHttpReceiveResponse() returning TRUE 	
00000138	6.68001032	[10172] 21:52:07.555 ::WinHttpQueryHeaders(0x535fc80, HTTP_QUERY_STATUS_CODE (0x20000013), "<null>", 0x263011c, 0x29e528 [4], 0x0 [0]) 	
00000139	6.68007898	[10172] 21:52:07.555 ::    WinHttpQueryHeaders(); Header = E, Buffer Length = 4, Index = 0 	
00000140	6.68013954	[10172] 21:52:07.555 ::WinHttpQueryHeaders() returning TRUE 	
00000141	6.68023777	[10172] 21:52:07.555 ::WinHttpQueryAuthSchemes(0x535fc80, 0x29e534, 0x29e51c) 	
00000142	6.68030262	[10172] 21:52:07.555 :: Supported Schemes = 0x0; First Scheme = 0x0; Auth Target = 0x0 	
00000143	6.68036270	[10172] 21:52:07.555 ::    WinHttpQueryAuthSchemes: error 4317 [0x10dd] 	
00000144	6.68042278	[10172] 21:52:07.555 ::WinHttpQueryAuthSchemes() returning FALSE 	
00000145	6.68055964	[10172] 21:52:07.555 ::WinHttpReadData(0x535fc80, 0x2633838, 65536, 0x29e528) 	
00000146	6.68062830	[10172] 21:52:07.555 ::usr-req 0555A220 issuing read-data call 0530A300 (buffer = 02633838, bufsize = 65536, filled size = 0, toRead = 65536) 	
00000147	6.68069267	[10172] 21:52:07.555 ::current thread is not impersonating 	
00000148	6.68075275	[10172] 21:52:07.555 ::sys-recver calling WebReceiveHttpResponseEntity(overlapped = 05316480, buffer-size = 65536) 	
00000149	6.68081188	[10172] 21:52:07.555 ::sys-recver transitioning from state _HEADERS_RECVED to state _READING_DATA 	
00000150	6.68087864	[10172] 21:52:07.555 ::  <c-b> an async I/O operation completes (overlapped = 05316480, #bytes/info = 3751, error = ERROR_SUCCESS (0)) 	
00000151	6.68094683	[10172] 21:52:07.555 ::sys-req pends read-data 	
00000152	6.68101740	[10172] 21:52:07.555 ::sys-recver processing WebReceiveHttpResponseEntity completion (error-cdoe = ERROR_SUCCESS (0x0), #bytes = 3751, overlapped = 05316480) 	
00000153	6.68110323	[10172] 21:52:07.555 ::sys-req completes read-data successfully; # bytes transferred = 3751 	
00000154	6.68118763	[10172] 21:52:07.555 ::sys-req completing a read-data call (error = ERROR_SUCCESS (0), cbRead = 3751) 	
00000155	6.68129253	[10172] 21:52:07.555 ::usr-req 0555A220 blocks waiting for async to complete... 	
00000156	6.68136311	[10172] 21:52:07.555 ::usr-req 0555A220 received OnReadData() callback; error = ERROR_SUCCESS (0), ulNumberOfBytesTransferred = 3751, dwptrContext = 0530A300 	
00000157	6.68142462	[10172] 21:52:07.555 ::usr-req 0555A220 completing (async) sys::read-data (buffer = 02633838, bufsize = 65536, filled size = 0) 	
00000158	6.68148804	[10172] 21:52:07.555 ::usr-req 0555A220 signals sync caller 0530A300 (api = 3, error = ERROR_SUCCESS (0), # bytes = 3751) 	
00000159	6.68156195	[10172] 21:52:07.555 ::... async completed (result = ERROR_SUCCESS (0)); usr-req unblocked 	
00000160	6.68163490	[10172] 21:52:07.555 ::    WinHttpReadData() Bytes Read = 3751 	
00000161	6.68169641	[10172] 21:52:07.555 ::WinHttpReadData() returning TRUE 	
00000162	6.68177509	[10172] 21:52:07.555 ::WinHttpReadData(0x535fc80, 0x2633838, 65536, 0x29e528) 	
00000163	6.68184423	[10172] 21:52:07.555 ::usr-req 0555A220 issuing read-data call 0530A300 (buffer = 02633838, bufsize = 65536, filled size = 0, toRead = 65536) 	
00000164	6.68190718	[10172] 21:52:07.555 ::current thread is not impersonating 	
00000165	6.68196774	[10172] 21:52:07.555 ::sys-recver calling WebReceiveHttpResponseEntity(overlapped = 05316480, buffer-size = 65536) 	
00000166	6.68202734	[10172] 21:52:07.555 ::sys-recver transitioning from state _READING_DATA to state _READING_DATA 	
00000167	6.68209171	[10172] 21:52:07.555 ::  <c-b> an async I/O operation completes (overlapped = 05316480, #bytes/info = 0, error = ERROR_HANDLE_EOF (38)) 	
00000168	6.68215942	[10172] 21:52:07.555 ::sys-req pends read-data 	
00000169	6.68222523	[10172] 21:52:07.555 ::sys-recver processing WebReceiveHttpResponseEntity completion (error-cdoe = ERROR_HANDLE_EOF (0x26), #bytes = 0, overlapped = 05316480) 	
00000170	6.68229008	[10172] 21:52:07.555 ::usr-req 0555A220 blocks waiting for async to complete... 	
00000171	6.68235493	[10172] 21:52:07.555 ::sys-recver detected EOF; all data has been read 	
00000172	6.68241549	[10172] 21:52:07.555 ::sys-req completes read-data successfully; # bytes transferred = 0 	
00000173	6.68247461	[10172] 21:52:07.555 ::sys-req shutting down; End-Of-File reached for read-data 	
00000174	6.68253565	[10172] 21:52:07.555 ::sys-req completing a read-data call (error = ERROR_SUCCESS (0), cbRead = 0) 	
00000175	6.68259668	[10172] 21:52:07.555 ::usr-req 0555A220 received OnReadData() callback; error = ERROR_SUCCESS (0), ulNumberOfBytesTransferred = 0, dwptrContext = 0530A300 	
00000176	6.68265867	[10172] 21:52:07.555 ::usr-req 0555A220 completing (async) sys::read-data (buffer = 02633838, bufsize = 65536, filled size = 0) 	
00000177	6.68272161	[10172] 21:52:07.555 ::usr-req 0555A220 signals sync caller 0530A300 (api = 3, error = ERROR_SUCCESS (0), # bytes = 0) 	
00000178	6.68278551	[10172] 21:52:07.555 ::... async completed (result = ERROR_SUCCESS (0)); usr-req unblocked 	
00000179	6.68284893	[10172] 21:52:07.555 ::    WinHttpReadData() Bytes Read = 0 	
00000180	6.68290854	[10172] 21:52:07.555 ::WinHttpReadData() returning TRUE 	
00000181	6.68301582	[10172] 21:52:07.555 ::WinHttpCloseHandle(0x535fc80) 	
00000182	6.68307590	[10172] 21:52:07.555 ::usr-req 0555A220 releases sys-req 057011A8 	
00000183	6.68313503	[10172] 21:52:07.555 ::sys-req failed to cancel the request; the object is already shutting down 	
00000184	6.68320894	[10172] 21:52:07.555 ::usr-req 0555A220 is shutting down 	
00000185	6.68327665	[10172] 21:52:07.555 ::Indicate Status 0x535fc80, 0x0, WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING (2048), 0x29e17c [0x535fc80], 4 	
00000186	6.68333817	[10172] 21:52:07.555 ::WinHttpCloseHandle() returning TRUE 	
00000187	6.68343163	[10172] 21:52:07.555 ::WinHttpCloseHandle(0x56e9760) 	
00000188	6.68349361	[10172] 21:52:07.555 ::Indicate Status 0x56e9760, 0x0, WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING (2048), 0x29e17c [0x56e9760], 4 	
00000189	6.68355417	[10172] 21:52:07.555 ::WinHttpCloseHandle() returning TRUE 	
00000190	6.68363380	[10172] tspcli.dll: {15116} /CryptoPro::PKI::TSP::Client::CStamp::Import/ tspstamp.cpp(88) : Importing time-stamp...	
00000191	6.68590975	[10172] <capi20>0x3b0c:_CryptMsgGetParam!failed: LastError = 0x8009100F (:1511)	
00000192	6.68627453	[10172] tspcli.dll: {15116} /CryptoPro::PKI::TSP::Client::CStamp::Import/ tspstamp.cpp(103) : Checking status of time-stamp response...	
00000193	6.68635178	[10172] tspcli.dll: {15116} /CryptoPro::PKI::TSP::Client::CStamp::Import/ tspstamp.cpp(132) : Parsing and checking time-stamp token fields...	
00000194	6.68682528	[10172] <capi20>0x3b0c:_CryptMsgGetParam!failed: LastError = 0x8009100F (:1511)	
00000195	6.68690157	[10172] tspcli.dll: {15116} /CryptoPro::PKI::TSP::Client::CStamp::Import/ tspstamp.cpp(220) : Importing time-stamp... OK	
00000196	6.68841505	[10172] cades.dll: {15116} /CadesMsgGetCertificateValues/ cades.cpp(3890) : (hCryptMsg=0x055336D0, dwSignatureIndex=0, ppCertificates=0x0029E68C)	
00000197	6.68853474	[10172] <capi20>0x3b0c:_CryptMsgGetParam!failed: LastError = 0x8009100F (:1511)	
00000198	6.68862057	[10172] cades.dll: {15116} /GetUnauthAttr/ ades-core.cpp(112) : Exception thrown: _hr	
00000199	6.68874645	[10172] cades.dll: {15116} /CadesMsgGetCertificateValues/ cades.cpp(3907) : COleException, m_sc=0x8009100f	
00000200	6.68883133	[10172] cades.dll: {15116} /CadesMsgGetCertificateValues/ cades.cpp(3919) : (res=0, GetLastError=0x8009100f	
00000201	6.68908882	[10172] cades.dll: {15116} /CChainValidationProcess::validateChain/ chainvalidation.h(1206) : #start#	
00000202	6.68917227	[10172] cades.dll: {15116} /CChainValidationProcess::buildChain/ chainvalidation.h(1267) : #start#	
00000203	6.72188997	[10172] cades.dll: {15116} /CChainWalker::walk/ chainvalidation.h(1060) : #start#	
00000204	6.72195768	[10172] cades.dll: {15116} /CChainObserverQueue::verifyTime/ chainvalidation.h(300) : #start#	
00000205	6.72203398	[10172] cades.dll: {15116} /CChainPolicyVerification::verifyTime/ chainvalidation.h(675) : #start#	
00000206	6.72209740	[10172] cades.dll: {15116} /CChainPolicyVerification::verifyTime/ chainvalidation.h(677) : #success#	
00000207	6.72217989	[10172] cades.dll: {15116} /CChainObserverQueue::evidenceVerifyTime/ chainvalidation.h(306) : #start#	
00000208	6.72224236	[10172] cades.dll: {15116} /CChainObserverQueue::chainContext/ chainvalidation.h(312) : #start#	
00000209	6.72230530	[10172] cades.dll: {15116} /CSingleChain::chainContext/ chainvalidation.h(486) : #start#	
00000210	6.72236824	[10172] cades.dll: {15116} /CSingleChain::chainContext/ chainvalidation.h(490) : #success#	
00000211	6.72243071	[10172] cades.dll: {15116} /CChainStatus::chainContext/ chainvalidation.h(510) : #start#	
00000212	6.72256470	[10172] cades.dll: {15116} /CChainStatus::chainContext/ chainvalidation.h(530) : Subject = Тестовая служба штампов времени ООО "КРИПТО-ПРО"	
00000213	6.72261810	[10172] cades.dll: {15116} /CChainStatus::chainContext/ chainvalidation.h(540) : #failure# HRESULT: (0x800b010a)	
00000214	6.72265911	[10172] cades.dll: {15116} /CChainStatus::chainContext/ chainvalidation.h(540) : Unacceptable dwErrorStatus	
00000215	6.73756599	[10172] cades.dll: {15116} /CadesMsgEnhanceSignatureImplNamespace::MakeCAdES_T_NoEvidence/ cades.cpp(772) : Exception thrown: _hr	
00000216	6.73778582	[10172] 21:52:07.603 ::WinHttpCloseHandle(0x56e9678) 	
00000217	6.73785734	[10172] 21:52:07.603 ::winhttp-dll is shutting down 	
00000218	6.73793459	[10172] 21:52:07.603 ::Indicate Status 0x56e9678, 0x0, WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING (2048), 0x29d938 [0x56e9678], 4 	
00000219	6.73799801	[10172] 21:52:07.603 ::WinHttpCloseHandle() returning TRUE 	
00000220	6.73809433	[10172] cades.dll: {15116} /CadesMsgEnhanceSignature/ cades.cpp(1577) : COleException, m_sc=0x800b010a	
00000221	6.73816013	[10172] cades.dll: {15116} /CadesMsgEnhanceSignature/ cades.cpp(1589) : (res=0, GetLastError=0x800b010a	
00000222	6.73822403	[10172] cades.dll: {15116} /CadesSignMessageImpl/ cades.cpp(2659) : Expression FAILED: ::CadesMsgEnhanceSignature(msgDecode.GetHandle(), 0, &cadesSignPara)	
00000223	6.73828697	[10172] cades.dll: {15116} /CadesSignMessageImpl/ cades.cpp(2659) : Last win32 error thrown as exception	
00000224	6.73867083	[10172] cades.dll: {15116} /CadesSignMessage/ cades.cpp(2706) : COleException, m_sc=0x800b010a	
00000225	6.73871803	[10172] cades.dll: {15116} /CadesSignMessage/ cades.cpp(2718) : (res=0, GetLastError=0x800b010a

Отредактировано пользователем 12 октября 2021 г. 21:22:33(UTC)  | Причина: Не указана

Offline Андрей *  
#2 Оставлено : 12 октября 2021 г. 22:25:14(UTC)
Андрей *

Статус: Сотрудник

Группы: Участники
Зарегистрирован: 26.07.2011(UTC)
Сообщений: 10,656
Мужчина
Российская Федерация

Сказал «Спасибо»: 393 раз
Поблагодарили: 1611 раз в 1238 постах
Здравствуйте.

По ссылке в примере формируются CAdES-BES.
Вы же дописали и пытаетесь сформировать подпись со штампом.

Требования к формированию указаны в документации.

Вам необходимо установить корневой сертификат УЦ из цепочки сертификата TSP-службы.

URL TSP какой использовали?
Техническую поддержку оказываем тут
Наша база знаний
Offline Максим Коршиков  
#3 Оставлено : 13 октября 2021 г. 9:50:46(UTC)
Максим Коршиков

Статус: Новичок

Группы: Участники
Зарегистрирован: 12.10.2021(UTC)
Сообщений: 3

Здравствуйте
Указанный в примере - http://cryptopro.ru/tsp/
Offline Андрей *  
#4 Оставлено : 13 октября 2021 г. 10:16:12(UTC)
Андрей *

Статус: Сотрудник

Группы: Участники
Зарегистрирован: 26.07.2011(UTC)
Сообщений: 10,656
Мужчина
Российская Федерация

Сказал «Спасибо»: 393 раз
Поблагодарили: 1611 раз в 1238 постах
Автор: Максим Коршиков Перейти к цитате
Здравствуйте
Указанный в примере - http://cryptopro.ru/tsp/



Сертификат тестового УЦ: http://testca15.cryptopro.ru/ra/cdp/cacer4.crt
Установить в доверенные корневые ЦС.

примечание: у TSP и УЦ используется алгоритм ГОСТ-2001


С ГОСТ-2012, от аккредитованного УЦ:
http://qs.cryptopro.ru/tsp/tsp.srf
Техническую поддержку оказываем тут
Наша база знаний
Offline Максим Коршиков  
#5 Оставлено : 15 октября 2021 г. 12:42:59(UTC)
Максим Коршиков

Статус: Новичок

Группы: Участники
Зарегистрирован: 12.10.2021(UTC)
Сообщений: 3

Спасибо! Всё получилось
RSS Лента  Atom Лента
Пользователи, просматривающие эту тему
Быстрый переход  
Вы не можете создавать новые темы в этом форуме.
Вы не можете отвечать в этом форуме.
Вы не можете удалять Ваши сообщения в этом форуме.
Вы не можете редактировать Ваши сообщения в этом форуме.
Вы не можете создавать опросы в этом форуме.
Вы не можете голосовать в этом форуме.