{"id":319505,"date":"2021-03-13T15:00:26","date_gmt":"2021-03-13T15:00:26","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=319505"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=319505","title":{"rendered":"\u0423\u041a\u042d\u041f \u0441 TSP, OSCP \u0438 C# .NET Core 3.1"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ecf\/3e9\/1bb\/ecf3e91bbd8e340628d78e0315436475.png\" alt=\"\u042f \u043f\u043e\u0441\u0442\u0440\u043e\u044e \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 - FOX \u00a9\" title=\"\u042f \u043f\u043e\u0441\u0442\u0440\u043e\u044e \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 - FOX \u00a9\" width=\"600\" height=\"450\"><figcaption>\u042f \u043f\u043e\u0441\u0442\u0440\u043e\u044e \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 &#8212; FOX \u00a9<\/figcaption><\/figure>\n<h2>\u0412\u0430\u0436\u043d\u043e\u0435 \u0432\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0412 \u0433\u0430\u0439\u0434\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0442\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0432&nbsp;\u0444\u043e\u0440\u043c\u0430\u0442\u0435 PKCS7 (\u0440\u044f\u0434\u043e\u043c \u0441 \u0444\u0430\u0439\u043b\u043e\u043c \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0444\u0430\u0439\u043b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 .sig). \u0422\u0430\u043a\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043d\u043e\u0442\u0430\u0440\u0438\u0443\u0441, \u0426\u0411 \u0438 \u043b\u044e\u0431\u043e\u0439 \u043a\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u043b\u0433\u043e\u0441\u0440\u043e\u0447\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430. \u0423\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u0438 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0438 \u0435\u0435 \u0434\u043e \u0423\u041a\u042d\u041f CAdES-X Long Type 1 (CMS Advanced Electronic Signatures [1]) \u0432 \u043d\u0435\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0448\u0442\u0430\u043c\u043f \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 TSA (Time-Stamp Protocol [2]) \u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f (OCSP [3]) &#8212; \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u043f\u043e \u043f\u0440\u043e\u0448\u0435\u0441\u0442\u0432\u0438\u0438 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0438\u043e\u0434\u0430 (\u0423\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c [4]). <\/p>\n<p>\u041a\u043e\u0434 \u043e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u0445 <a href=\"https:\/\/github.com\/CryptoPro\/corefx\" rel=\"noopener noreferrer nofollow\">corefx<\/a> \u0438 <a href=\"https:\/\/github.com\/CryptoPro\/DotnetCoreSampleProject\" rel=\"noopener noreferrer nofollow\">DotnetCoreSampleProject<\/a> &#8212; \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u043f\u0440\u043e\u0449\u0435 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0434 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u043e\u043c \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u043f\u043e \u0441\u0431\u043e\u0440\u043a\u0435 corefx. \u0421\u0443\u0434\u044f \u043f\u043e \u0437\u0430\u043f\u0438\u0441\u044f\u043c \u0441 \u0444\u043e\u0440\u0443\u043c\u0430 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 [5], \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f .NET Core \u0432 \u0441\u0442\u0430\u0434\u0438\u0438 \u0431\u0435\u0442\u0430-\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0414\u0430\u043b\u0435\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 \u044f \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0443 \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u044d\u0442\u043e\u0442 \u0444\u043e\u0440\u0443\u043c. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432\u0435\u043b\u0430\u0441\u044c \u0432 Visual Studio Community 2019.<\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0448\u0442\u0430\u043c\u043f\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d TSP-\u0441\u0435\u0440\u0432\u0438\u0441 <a href=\"http:\/\/qs.cryptopro.ru\/tsp\/tsp.srf\" rel=\"noopener noreferrer nofollow\">http:\/\/qs.cryptopro.ru\/tsp\/tsp.srf<\/a><\/p>\n<h2>\u0427\u0442\u043e \u0438\u043c\u0435\u0435\u043c \u043d\u0430 \u0432\u0445\u043e\u0434\u0435?<\/h2>\n<ol>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e CSP \u0432\u0435\u0440\u0441\u0438\u0438 5.0 &#8212; \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0445 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 (\u043f\u043e\u0434\u043f\u0438\u0441\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0432 \u0430\u043a\u043a\u0440\u0435\u0434\u0438\u0442\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u0423\u0426 \u0432 \u0420\u0424)<\/p>\n<\/li>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e TSP Client 2.0 &#8212; \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0448\u0442\u0430\u043c\u043f\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/p>\n<\/li>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e OCSP Client 2.0 &#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442 \u043d\u0435 \u043e\u0442\u043e\u0437\u0432\u0430\u043d \u043b\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e .NET Client &#8212; \u0442\u0430\u043a\u043e\u0432 \u043f\u0443\u0442\u044c<\/p>\n<\/li>\n<li>\n<p>\u041b\u044e\u0431\u043e\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u042d\u041f &#8212; \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <a href=\"https:\/\/crypto.kontur.ru\/\" rel=\"noopener noreferrer nofollow\">\u041a\u043e\u043d\u0442\u0443\u0440.\u041a\u0440\u0438\u043f\u0442\u043e<\/a> \u043a\u0430\u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u042d\u041f \u0438 <a href=\"https:\/\/cryptoarm.ru\/\" rel=\"noopener noreferrer nofollow\">\u041a\u0440\u0438\u043f\u0442\u043e\u0410\u0420\u041c<\/a> \u043a\u0430\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439. \u0410 \u0435\u0449\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u042d\u041f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 <a href=\"https:\/\/www.gosuslugi.ru\/pgu\/eds\" rel=\"noopener noreferrer nofollow\">\u0413\u043e\u0441\u0443\u0441\u043b\u0443\u0433<\/a><\/p>\n<\/li>\n<li>\n<p>\u041a\u042d\u041f \u043f\u043e \u0413\u041e\u0421\u0422 \u0420 34.11-2012\/34.10-2012 256 bit, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b \u043b\u044e\u0431\u043e\u0439 \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0438\u0439 \u0446\u0435\u043d\u0442\u0440<\/p>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>\u041b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u041f\u041e \u0438 \u0432\u0435\u0440\u0441\u0438\u0438<\/summary>\n<div class=\"spoiler__content\">\n<ol>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e CSP \u0432\u0435\u0440\u0441\u0438\u0438 5.0 &#8212; \u0443 \u043c\u0435\u043d\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f 5.0.11944 \u041a\u04211, \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0432 \u042d\u041f.<\/p>\n<\/li>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e TSP Client 2.0 \u0438 \u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e OCSP Client 2.0 &#8212; \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u043f\u043e\u043a\u0443\u043f\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u0430 \u0434\u043b\u044f \u0433\u0430\u0439\u0434\u0430 \u043c\u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0441\u0440\u043e\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e .NET Client \u0432\u0435\u0440\u0441\u0438\u0438 1.0.7132.2 &#8212; \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u0442\u043e\u0433\u043e \u0433\u0430\u0439\u0434\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0438 \u0432\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0438\u0441\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e. \u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u043d\u0442\u0443\u0440.\u041a\u0440\u0438\u043f\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u0435\u043d, \u043d\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438. \u0412 \u043d\u0435\u043c \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u041a\u042d\u041f, \u0423\u041a\u042d\u041f \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0432 \u0435\u0435 \u0444\u0430\u0439\u043b\u044b.<\/p>\n<\/li>\n<\/ol>\n<\/div>\n<\/details>\n<h2>\u0422\u0430\u043a, \u0430 \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435?<\/h2>\n<p>\u0410 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043d\u0430\u0434\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u0442\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u0443\u044e \u042d\u041f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 .sig \u0441\u043e \u0448\u0442\u0430\u043c\u043f\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0438 \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e\u043c \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0438:<\/p>\n<ol>\n<li>\n<p>\u042d\u041f \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 <a href=\"https:\/\/www.gosuslugi.ru\/pgu\/eds\/\" rel=\"noopener noreferrer nofollow\">\u043d\u0430 \u043f\u0440\u043e\u0442\u0430\u043b\u0435 \u0413\u043e\u0441\u0443\u0441\u043b\u0443\u0433<\/a>, \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438 \u042d\u041f \u0444\u043e\u0440\u043c\u0430\u0442\u0430 PKCS#7 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0445;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u0410\u0420\u041c \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0438<\/p>\n<ol>\n<li>\n<p>\u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442 \u043f\u043e\u043b\u0435 &#171;\u0412\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u042d\u041f&#187; &#8212; \u0432 \u043a\u043e\u043d\u0446\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u043e\u043a\u043d\u043e, \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u042d\u041f \u0438 \u043a\u0440\u0430\u0442\u043a\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0435\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b19\/8cb\/b1b\/b198cbb1b0f9907cc7196050443c23e1.png\" alt=\"\u0421\u0442\u043e\u0431\u0435\u0446 &quot;\u0412\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u0446\u0438\u044f \u042d\u041f&quot;\" title=\"\u0421\u0442\u043e\u0431\u0435\u0446 &quot;\u0412\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u0446\u0438\u044f \u042d\u041f&quot;\" width=\"185\" height=\"67\"><figcaption>\u0421\u0442\u043e\u0431\u0435\u0446 &#171;\u0412\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u0446\u0438\u044f \u042d\u041f&#187;<\/figcaption><\/figure>\n<\/li>\n<li>\n<p>\u0412 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0435 (\u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u043a\u043b\u0438\u043a \u043f\u043e \u0437\u0430\u043f\u0438\u0441\u0435 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435) \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 &#171;\u0428\u0442\u0430\u043c\u043f\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438&#187; \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0435 \u0435\u0441\u0442\u044c \u043e\u0431\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438 \u043f\u043e \u043d\u0438\u043c \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f:<\/p>\n<ol>\n<li>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u044c:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c1a\/2f5\/388\/c1a2f538885df587085506db120ba759.png\" width=\"513\" height=\"530\"><figcaption><\/figcaption><\/figure>\n<\/li>\n<li>\n<p>\u0414\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c64\/0bb\/6a3\/c640bb6a32511f8c14df0c24bc9e2f60.png\" width=\"512\" height=\"524\"><figcaption><\/figcaption><\/figure>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>\u0412 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0435\u0441\u0442\u044c \u0431\u043b\u043e\u043a\u0438 &#171;\u0414\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438&#187;, &#171;\u0428\u0442\u0430\u043c\u043f \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c&#187; \u0438 &#171;\u0412\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f&#187;. \u0414\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f: \u0435\u0441\u043b\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u041a\u042d\u041f, \u0442\u043e \u043e\u0442\u0447\u0435\u0442 \u043f\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 \u0423\u041a\u042d\u041f.<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>\u041a\u043e\u043d\u0442\u0443\u0440.\u041a\u0440\u0438\u043f\u0442\u043e \u043f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0432\u044b\u0434\u0430\u0441\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0430, \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c: <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/452\/2e2\/334\/4522e23349233789c805704554a2a4f0.png\" alt=\"\u0423\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0430\" title=\"\u0423\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0430\" width=\"659\" height=\"181\"><figcaption>\u0423\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0430<\/figcaption><\/figure>\n<\/li>\n<\/ol>\n<h2>\u0421\u043e\u0431\u0435\u0440\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0413\u041e\u0421\u0422 \u0420 34.11-2012 256 bit<\/h2>\n<p>\u0413\u0430\u0439\u0434 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0430\u043f\u043e\u0432. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u0441\u0431\u043e\u0440\u043a\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u0430 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u043c <a href=\"https:\/\/github.com\/CryptoPro\/DotnetCoreSampleProject\" rel=\"noopener noreferrer nofollow\">DotnetCoreSampleProject<\/a> &#8212; \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u044f \u0431\u0443\u0434\u0443 \u043d\u0430 \u043d\u0435\u0435 \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f.<\/p>\n<h3>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443<\/h3>\n<p>&#8230; \u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u043c \u0442\u0443\u0434\u0430 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435.<\/p>\n<p>\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 2 \u044d\u0442\u0430\u043f\u0430 &#8212; \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043e\u0431\u0430, \u0447\u0442\u043e\u0431\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e. \u0412 \u043f\u0430\u043f\u043a\u0443 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043f\u043e\u0434\u043f\u0430\u043f\u043a\u0438 .\\runtime \u0438 .\\packages<\/p>\n<h4>I &#8212; \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0431\u0435\u0437 \u0441\u0431\u043e\u0440\u043a\u0438 corefx \u0434\u043b\u044f Windows<\/h4>\n<ol>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e 5.0 \u0438 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0430\u044f \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f. &#8212; \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043f\u043e\u0434\u043e\u0448\u043b\u0430 \u0432\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0432 \u042d\u041f;<\/p>\n<\/li>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 <a href=\"https:\/\/dotnet.microsoft.com\/download\/dotnet-core\/3.1\" rel=\"noopener noreferrer nofollow\"><u>core 3.1 sdk \u0438 runtime<\/u><\/a> \u0438 <a href=\"https:\/\/www.microsoft.com\/ru-ru\/download\/details.aspx?id=48145\" rel=\"noopener noreferrer nofollow\">\u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u043c\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 Visual C++ \u0434\u043b\u044f Visual Studio 2015<\/a> \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u043e \u0441\u0442\u0443\u0434\u0438\u0435\u0439; \u043f\u0440\u0438\u043c.: \u043d\u0430 II \u044d\u0442\u0430\u043f\u0435 \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0447\u0435\u0440\u0435\u0437 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a \u0441\u0442\u0443\u0434\u0438\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u041f\u041e \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 C++ &#8212; \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 DIA SDK.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0434\u0430\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b DOTNET_MULTILEVEL_LOOKUP \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0 &#8212; \u043d\u0435 \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e, \u043d\u043e \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u044d\u0442\u043e \u0435\u0441\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 2 \u0444\u0430\u0439\u043b\u0430 \u0438\u0437 <a href=\"https:\/\/github.com\/CryptoPro\/corefx\/releases\" rel=\"noopener noreferrer nofollow\">\u0440\u0435\u043b\u0438\u0437\u0430 corefx<\/a> (package_windows_debug.zip \u0438 runtime-debug-windows.zip) &#8212; \u043e\u043d\u0438 \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412 \u0433\u0430\u0439\u0434\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u0440\u0441\u0438\u044f v3.1.1-cprocsp-preview4.325 \u043e\u0442 04.02.2021:<\/p>\n<ol>\n<li>\n<p>package_windows_debug.zip \u0440\u0430\u0441\u043f\u0430\u043a\u0443\u0439\u0442\u0435 \u0432 .\\packages<\/p>\n<\/li>\n<li>\n<p>runtime-debug-windows.zip \u0440\u0430\u0441\u043f\u0430\u043a\u0443\u0439\u0442\u0435 \u0432 .\\runtime<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u0430\u043a\u0435\u0442\u043e\u0432 NuGet \u0432 \u0444\u0430\u0439\u043b\u0435 %appdata%\\NuGet\\NuGet.Config &#8212; \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0443\u0442\u044c .\\packages \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0439 \u0432\u0430\u043c\u0438 \u043f\u0430\u043f\u043a\u0435. \u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0435\u0441\u0442\u044c \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0435\u0438\u0438. \u0414\u043b\u044f \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0447\u0435\u0440\u0435\u0437 VS Community;<\/p>\n<\/li>\n<li>\n<p>\u0421\u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0439\u0442\u0435 <a href=\"https:\/\/github.com\/CryptoPro\/NetStandard.Library\/tree\/master\/nugetReady\/netstandard.library\" rel=\"noopener noreferrer nofollow\">NetStandard.Library<\/a> \u0432 .\\ \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 PowerShell \u0441\u043a\u0440\u0438\u043f\u0442 (\u0432\u0437\u044f\u0442 \u0438\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438), \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b \u0432 $env:userprofile\\.nuget\\packages\\<\/p>\n<pre><code class=\"powershell\">git clone https:\/\/github.com\/CryptoProLLC\/NetStandard.Library New-Item -ItemType Directory -Force -Path \"$env:userprofile\\.nuget\\packages\\netstandard.library\" Copy-Item -Force -Recurse \".\\NetStandard.Library\\nugetReady\\netstandard.library\" -Destination \"$env:userprofile\\.nuget\\packages\\\"<\/code><\/pre>\n<\/li>\n<li>\n<p>\u0421\u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0439\u0442\u0435 \u0440\u0435\u043f\u0438\u0437\u0438\u0442\u043e\u0440\u0438\u0439 <a href=\"https:\/\/github.com\/CryptoProLLC\/DotnetCoreSampleProject\" rel=\"noopener noreferrer nofollow\">DotnetCoreSampleProject<\/a> \u0432 .\\<\/p>\n<\/li>\n<li>\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0444\u0430\u0439\u043b&nbsp;.\\DotnetSampleProject\\DotnetSampleProject.csproj &#8212; \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043e\u043a System.Security.Cryptography.Pkcs.dll \u0438 System.Security.Cryptography.Xml.dll \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u043e\u043b\u043d\u044b\u0435 \u043f\u0443\u0442\u0438 \u043a .\\runtime;<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u043f\u0430\u043f\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u042f \u0441\u043e\u0431\u0438\u0440\u0430\u043b \u0447\u0435\u0440\u0435\u0437 Visual Studio \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<\/li>\n<\/ol>\n<h4>II &#8212; \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u043e \u0441\u0431\u043e\u0440\u043a\u043e\u0439 corefx \u0434\u043b\u044f Windows<\/h4>\n<ol>\n<li>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 1-3 \u0438 6-\u0439 \u0448\u0430\u0433\u0438 \u0438\u0437 I \u044d\u0442\u0430\u043f\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0421\u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0439\u0442\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 <a href=\"https:\/\/github.com\/CryptoPro\/corefx\" rel=\"noopener noreferrer nofollow\">corefx<\/a> \u0432 .\\<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u0431\u043e\u0440\u043a\u0443 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 .\\corefx\\build.cmd &#8212; \u043d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 DIA SDK<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0448\u0430\u0433\u0438 5, 7-9 \u0438\u0437 I \u044d\u0442\u0430\u043f\u0430. \u0412\u043c\u0435\u0441\u0442\u043e \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0433\u043e \u043f\u0443\u0442\u0438 .\\packages \u0443\u043a\u0430\u0436\u0438\u0442\u0435 .\\corefx\\artifacts\\packages\\Debug\\NonShipping, \u0430 \u0432\u043c\u0435\u0441\u0442\u043e .\\runtime \u0443\u043a\u0430\u0436\u0438\u0442\u0435 .\\corefx\\artifacts\\bin\\runtime\\netcoreapp-Windows_NT-Debug-x64<\/p>\n<\/li>\n<\/ol>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0443 \u0432\u0430\u0441 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0413\u041e\u0421\u0422 \u0420 34.11-2012 256 bit.<\/p>\n<h2>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043a\u043e\u0434\u0438\u043c<\/h2>\n<p>\u041f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f 2 COM \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438: &#171;CAPICOM v2.1 Type Library&#187; \u0438 &#171;Crypto-Pro CAdES 1.0 Type Library&#187;. \u041e\u043d\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0423\u041a\u042d\u041f.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c\u0441\u044f BASE64 \u0441\u0442\u0440\u043e\u043a\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0430\u044f \u0432 \u0441\u0435\u0431\u0435 PDF-\u0444\u0430\u0439\u043b. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0432 \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c hash-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u043b\u0430.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0431\u044b\u043b \u0432\u0437\u044f\u0442 \u0441\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446 <a href=\"https:\/\/www.cryptopro.ru\/forum2\/default.aspx?g=posts&amp;t=4804&amp;p=2\" rel=\"noopener noreferrer nofollow\">\u041f\u043e\u0434\u043f\u0438\u0441\u044c PDF \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0423\u042d\u0426\u041f- Page 2 (cryptopro.ru)<\/a> \u0438 <a href=\"https:\/\/www.cryptopro.ru\/forum2\/default.aspx?g=posts&amp;t=10535\" rel=\"noopener noreferrer nofollow\">\u041f\u043e\u0434\u043f\u0438\u0441\u044c \u041d\u0415\u041e\u041f\u0420\u0415\u0414\u0415\u041b\u0415\u041d\u0410 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0423\u042d\u0426\u041f \u0434\u043b\u044f PDF \u043d\u0430 c# (cryptopro.ru)<\/a>, \u043d\u043e \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0434\u043b\u044f \u0448\u0442\u0430\u043c\u043f\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043d\u0430 PDF \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442. \u041a\u043e\u0434 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0433\u0430\u0439\u0434\u0430 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u043d \u043f\u043e\u0434 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b.<\/p>\n<p>\u0423\u0441\u043b\u043e\u0432\u043d\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 4 \u044d\u0442\u0430\u043f\u0430:<\/p>\n<ol>\n<li>\n<p>\u041f\u043e\u0438\u0441\u043a \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 &#8212; \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u043e\u0442\u043f\u0435\u0447\u0430\u0442\u043a\u0443 \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0427\u0442\u0435\u043d\u0438\u0435 \u0431\u0430\u0439\u0442\u043e\u0432 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0423\u041a\u042d\u041f;<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0440\u044f\u0434\u043e\u043c \u0441 \u0444\u0430\u0439\u043b\u043e\u043c.<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"cs\">using CAdESCOM; using CAPICOM; using System; using System.Globalization; using System.IO; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.Xml; using System.Text; using System.Threading.Tasks; using System.Xml;  public static void Main() {   \/\/\u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \tX509Certificate2 gostCert = GetX509Certificate2(\"\u043e\u0442\u043f\u0435\u0447\u0430\u0442\u043e\u043a\");   \/\/\u0424\u0430\u0439\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c   byte[] fileBytes = File.ReadAllBytes(\"C:\\\\\u0422\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0435.pdf\");   \/\/\u0424\u0430\u0439\u043b \u043e\u0442\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0438   byte[] signatureBytes = SignWithAdvancedEDS(fileBytes, gostCert);   \/\/\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438   File.WriteAllBytes(\"C:\\\\Users\\\\mikel\\\\Desktop\\\\\u0422\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0435.pdf.sig\", signatureBytes); }  \/\/\u041f\u043e\u0438\u0441\u043a \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 public static X509Certificate2 GetX509Certificate2(string thumbprint) {   X509Store store = CreateStoreObject(\"My\", StoreLocation.CurrentUser);   store.Open(OpenFlags.ReadOnly);    X509Certificate2Collection certCollection =     store.Certificates.Find(X509FindType.FindByThumbprint, thumbprint, false);    X509Certificate2Enumerator enumerator = certCollection.GetEnumerator();   X509Certificate2 gostCert = null;   while (enumerator.MoveNext())     gostCert = enumerator.Current;   if (gostCert == null)     throw new Exception(\"Certificiate was not found!\");    return gostCert; }  \/\/\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0423\u041a\u042d\u041f public static byte[] SignWithAdvancedEDS(byte[] fileBytes, X509Certificate2 certificate) {   string signature = \"\";      try   {     string tspServerAddress = @\"http:\/\/qs.cryptopro.ru\/tsp\/tsp.srf\";      CPSigner cps = new CPSigner();     cps.Certificate = GetCAPICOMCertificate(certificate.Thumbprint);     cps.Options = CAPICOM_CERTIFICATE_INCLUDE_OPTION.CAPICOM_CERTIFICATE_INCLUDE_WHOLE_CHAIN;     cps.TSAAddress = tspServerAddress;      CadesSignedData csd = new CadesSignedData();     csd.ContentEncoding = CADESCOM_CONTENT_ENCODING_TYPE.CADESCOM_BASE64_TO_BINARY;     csd.Content = Convert.ToBase64String(fileBytes);      \/\/\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 CAdES BES     signature = csd.SignCades(cps, CADESCOM_CADES_TYPE.CADESCOM_CADES_BES, true, CAdESCOM.CAPICOM_ENCODING_TYPE.CAPICOM_ENCODE_BASE64);     csd.VerifyCades(signature, CADESCOM_CADES_TYPE.CADESCOM_CADES_BES, true);          \/\/\u0414\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 CAdES BES \u0434\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0438 CAdES X Long Type 1      \/\/(\u0432\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0430 \u0443\u0436\u0435 CAdES X Long Type 1)     signature = csd.EnhanceCades(CADESCOM_CADES_TYPE.CADESCOM_CADES_X_LONG_TYPE_1, tspServerAddress, CAdESCOM.CAPICOM_ENCODING_TYPE.CAPICOM_ENCODE_BASE64);     csd.VerifyCades(signature, CADESCOM_CADES_TYPE.CADESCOM_CADES_X_LONG_TYPE_1, true);   }   catch (Exception ex)   {     throw ex;   }   return Convert.FromBase64String(signature); }<\/code><\/pre>\n<h3>\u041f\u0440\u043e\u0431\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a<\/h3>\n<p>\u0414\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0432\u043e\u0437\u044c\u043c\u0435\u043c PDF-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0430\u0434\u043f\u0438\u0441\u044c &#171;\u0422\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0435.&#187;:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2a0\/107\/071\/2a0107071a61f7b03151751129d36fd6.png\" alt=\"\u0411\u043e\u043b\u044c\u0448\u0435 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u043d\u0430\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0434\u043e\" title=\"\u0411\u043e\u043b\u044c\u0448\u0435 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u043d\u0430\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0434\u043e\" width=\"144\" height=\"35\"><figcaption>\u0411\u043e\u043b\u044c\u0448\u0435 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u043d\u0430\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0434\u043e<\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438 \u0434\u043e\u0436\u0434\u0435\u043c\u0441\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/368\/697\/527\/3686975279486f377fe6b97249183309.png\" width=\"772\" height=\"60\"><figcaption><\/figcaption><\/figure>\n<p>\u0413\u043e\u0442\u043e\u0432\u043e. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\u043c.<\/p>\n<h4>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432 \u041a\u0440\u0438\u043f\u0442\u043e\u0410\u0420\u041c<\/h4>\n<p>\u0412\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u042d\u041f \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/489\/c47\/596\/489c47596b33c46b7c0b9c163101d1af.png\" width=\"340\" height=\"277\"><figcaption><\/figcaption><\/figure>\n<p>\u0428\u0442\u0430\u043c\u043f \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0435\u0441\u0442\u044c:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a4c\/b7d\/754\/a4cb7d754366042fbfe39f1336018c53.png\" width=\"479\" height=\"278\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438 \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u044b:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b3a\/612\/757\/b3a612757b8eb4ea6b5575f0b9eb6161.png\" width=\"466\" height=\"282\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0435\u0441\u0442\u044c \u0431\u043b\u043e\u043a\u0438 &#171;\u0414\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438&#187;, &#171;\u0428\u0442\u0430\u043c\u043f \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c&#187; \u0438 &#171;\u0412\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f&#187;:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/da4\/720\/da2\/da4720da2bedd1d932a8b319fe5c9272.png\" alt=\"\" title=\"\" width=\"975\" height=\"183\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c72\/b3d\/d84\/c72b3dd84368907e1d0de807a82b77f5.png\" width=\"1006\" height=\"292\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6c9\/172\/dab\/6c9172dab2628b6394c15d27019c852b.png\" width=\"1007\" height=\"307\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0430\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0441\u0435\u0440\u0438\u0439\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 TSP-\u0441\u0435\u0440\u0432\u0438\u0441\u0443 <a href=\"http:\/\/qs.cryptopro.ru\/tsp\/tsp.srf\" rel=\"noopener noreferrer nofollow\">http:\/\/qs.cryptopro.ru\/tsp\/tsp.srf<\/a><\/p>\n<h4>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0413\u043e\u0441\u0443\u0441\u043b\u0443\u0433\u0430\u0445<\/h4>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d06\/a02\/6e9\/d06a026e944448a78678fbf03e3c73be.png\" width=\"1072\" height=\"365\"><figcaption><\/figcaption><\/figure>\n<h4>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432 \u041a\u043e\u043d\u0442\u0443\u0440.\u041a\u0440\u0438\u043f\u0442\u043e<\/h4>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/965\/4af\/791\/9654af791664a5b3d9a84526a6f26225.png\" width=\"728\" height=\"557\"><figcaption><\/figcaption><\/figure>\n<h2>Done.<\/h2>\n<p>\u0413\u0430\u0439\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0441 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u0446\u0435\u043b\u044c\u044e &#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0423\u041a\u042d\u041f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043d\u0430 .NET Core 3.1 \u0441 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0448\u0442\u0430\u043c\u043f\u043e\u0432 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432. <\/p>\n<p>\u0411\u0435\u0437\u0443\u0441\u043b\u043e\u0432\u043d\u043e \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0431\u0440\u0430\u0442\u044c \u0432 \u0440\u0430\u0431\u043e\u0442\u0443 &#171;\u043a\u0430\u043a \u0435\u0441\u0442\u044c&#187; \u0438 \u043d\u0443\u0436\u043d\u044b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043d\u043e \u0432 \u0446\u0435\u043b\u043e\u043c \u043e\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u043e\u0434\u043f\u0438\u0441\u044c\u044e \u0423\u041a\u042d\u041f.<\/p>\n<h2>\u042d\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0437\u0430\u043a\u043e\u043d\u043d\u043e?<\/h2>\n<p>\u0421 \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435\u043c \u0443\u0437\u043d\u0430\u044e \u0432\u0430\u0448\u0435 \u043c\u043d\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<h2>\u0421\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438<\/h2>\n<p>[1] CMS Advanced Electronic Signatures (CAdES) &#8212; <a href=\"https:\/\/tools.ietf.org\/html\/rfc5126#ref-ISO7498-2\" rel=\"noopener noreferrer nofollow\">https:\/\/tools.ietf.org\/html\/rfc5126#ref-ISO7498-2<\/a><\/p>\n<p>[2] Internet X.509 Public Key Infrastructure Time-Stamp Protocol (TSP) &#8212; <a href=\"https:\/\/www.ietf.org\/rfc\/rfc3161.txt\" rel=\"noopener noreferrer nofollow\">https:\/\/www.ietf.org\/rfc\/rfc3161.txt<\/a><\/p>\n<p>[3] X.509 Internet Public Key Infrastructure Online Certificate Status Protocol &#8212; OCSP &#8212; <a href=\"https:\/\/tools.ietf.org\/html\/rfc2560\" rel=\"noopener noreferrer nofollow\">https:\/\/tools.ietf.org\/html\/rfc2560<\/a><\/p>\n<p>[4] <a href=\"https:\/\/ca.kontur.ru\/faq\/signature\/ukep\" rel=\"noopener noreferrer nofollow\">\u0423\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u2014 \u0423\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0438\u0439 \u0446\u0435\u043d\u0442\u0440 \u0421\u041a\u0411 \u041a\u043e\u043d\u0442\u0443\u0440 (kontur.ru)<\/a>  <\/p>\n<p>[5] <a href=\"http:\/\/www.cryptopro.ru\/forum2\/default.aspx?g=posts&amp;t=13492\" rel=\"noopener noreferrer nofollow\">\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 .NET Core (cryptopro.ru)<\/a><\/p>\n<p>[6] <a href=\"http:\/\/qs.cryptopro.ru\/tsp\/tsp.srf\" rel=\"noopener noreferrer nofollow\">http:\/\/qs.cryptopro.ru\/tsp\/tsp.srf<\/a> &#8212; TSP-\u0441\u0435\u0440\u0432\u0438\u0441 \u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e<\/p>\n<p><strong>UPD1: \u041f\u043e\u043c\u0435\u043d\u044f\u043b \u0432 \u043a\u043e\u0434\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u043a\u0443\u0434\u0430 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0431\u0430\u0439\u0442\u044b \u0444\u0430\u0439\u043b\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438.<\/strong><\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u044f \u0437\u0430\u0431\u044b\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0448\u0442\u0430\u043c\u043f\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 &#8212; \u043e\u043d \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u043c \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430 TSP-\u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u041f\u043e \u0433\u0430\u0439\u0434\u0443 \u044d\u0442\u043e \u041e\u041e\u041e &#171;\u041a\u0420\u0418\u041f\u0422\u041e-\u041f\u0420\u041e&#187;:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d0c\/792\/f68\/d0c792f680cb199aef55be52fca2894e.png\" width=\"1017\" height=\"648\"><figcaption><\/figcaption><\/figure>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/546854\/\"> https:\/\/habr.com\/ru\/post\/546854\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"full-width\"><figcaption>\u042f \u043f\u043e\u0441\u0442\u0440\u043e\u044e \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 &#8212; FOX \u00a9<\/figcaption><\/figure>\n<h2>\u0412\u0430\u0436\u043d\u043e\u0435 \u0432\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0412 \u0433\u0430\u0439\u0434\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0442\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0432&nbsp;\u0444\u043e\u0440\u043c\u0430\u0442\u0435 PKCS7 (\u0440\u044f\u0434\u043e\u043c \u0441 \u0444\u0430\u0439\u043b\u043e\u043c \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0444\u0430\u0439\u043b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 .sig). \u0422\u0430\u043a\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043d\u043e\u0442\u0430\u0440\u0438\u0443\u0441, \u0426\u0411 \u0438 \u043b\u044e\u0431\u043e\u0439 \u043a\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u043b\u0433\u043e\u0441\u0440\u043e\u0447\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430. \u0423\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u0438 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0438 \u0435\u0435 \u0434\u043e \u0423\u041a\u042d\u041f CAdES-X Long Type 1 (CMS Advanced Electronic Signatures [1]) \u0432 \u043d\u0435\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0448\u0442\u0430\u043c\u043f \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 TSA (Time-Stamp Protocol [2]) \u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f (OCSP [3]) &#8212; \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u043f\u043e \u043f\u0440\u043e\u0448\u0435\u0441\u0442\u0432\u0438\u0438 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0438\u043e\u0434\u0430 (\u0423\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043a\u0432\u0430\u043b\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c [4]). <\/p>\n<p>\u041a\u043e\u0434 \u043e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u0445 <a href=\"https:\/\/github.com\/CryptoPro\/corefx\" rel=\"noopener noreferrer nofollow\">corefx<\/a> \u0438 <a href=\"https:\/\/github.com\/CryptoPro\/DotnetCoreSampleProject\" rel=\"noopener noreferrer nofollow\">DotnetCoreSampleProject<\/a> &#8212; \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u043f\u0440\u043e\u0449\u0435 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0434 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u043e\u043c \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u043f\u043e \u0441\u0431\u043e\u0440\u043a\u0435 corefx. \u0421\u0443\u0434\u044f \u043f\u043e \u0437\u0430\u043f\u0438\u0441\u044f\u043c \u0441 \u0444\u043e\u0440\u0443\u043c\u0430 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 [5], \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f .NET Core \u0432 \u0441\u0442\u0430\u0434\u0438\u0438 \u0431\u0435\u0442\u0430-\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0414\u0430\u043b\u0435\u0435 \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 \u044f \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0443 \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u044d\u0442\u043e\u0442 \u0444\u043e\u0440\u0443\u043c. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432\u0435\u043b\u0430\u0441\u044c \u0432 Visual Studio Community 2019.<\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0448\u0442\u0430\u043c\u043f\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d TSP-\u0441\u0435\u0440\u0432\u0438\u0441 <a href=\"http:\/\/qs.cryptopro.ru\/tsp\/tsp.srf\" rel=\"noopener noreferrer nofollow\">http:\/\/qs.cryptopro.ru\/tsp\/tsp.srf<\/a><\/p>\n<h2>\u0427\u0442\u043e \u0438\u043c\u0435\u0435\u043c \u043d\u0430 \u0432\u0445\u043e\u0434\u0435?<\/h2>\n<ol>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e CSP \u0432\u0435\u0440\u0441\u0438\u0438 5.0 &#8212; \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0445 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 (\u043f\u043e\u0434\u043f\u0438\u0441\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0432 \u0430\u043a\u043a\u0440\u0435\u0434\u0438\u0442\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u0423\u0426 \u0432 \u0420\u0424)<\/p>\n<\/li>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e TSP Client 2.0 &#8212; \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0448\u0442\u0430\u043c\u043f\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/p>\n<\/li>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e OCSP Client 2.0 &#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442 \u043d\u0435 \u043e\u0442\u043e\u0437\u0432\u0430\u043d \u043b\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e .NET Client &#8212; \u0442\u0430\u043a\u043e\u0432 \u043f\u0443\u0442\u044c<\/p>\n<\/li>\n<li>\n<p>\u041b\u044e\u0431\u043e\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u042d\u041f &#8212; \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <a href=\"https:\/\/crypto.kontur.ru\/\" rel=\"noopener noreferrer nofollow\">\u041a\u043e\u043d\u0442\u0443\u0440.\u041a\u0440\u0438\u043f\u0442\u043e<\/a> \u043a\u0430\u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u042d\u041f \u0438 <a href=\"https:\/\/cryptoarm.ru\/\" rel=\"noopener noreferrer nofollow\">\u041a\u0440\u0438\u043f\u0442\u043e\u0410\u0420\u041c<\/a> \u043a\u0430\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439. \u0410 \u0435\u0449\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u042d\u041f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 <a href=\"https:\/\/www.gosuslugi.ru\/pgu\/eds\" rel=\"noopener noreferrer nofollow\">\u0413\u043e\u0441\u0443\u0441\u043b\u0443\u0433<\/a><\/p>\n<\/li>\n<li>\n<p>\u041a\u042d\u041f \u043f\u043e \u0413\u041e\u0421\u0422 \u0420 34.11-2012\/34.10-2012 256 bit, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b \u043b\u044e\u0431\u043e\u0439 \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0438\u0439 \u0446\u0435\u043d\u0442\u0440<\/p>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>\u041b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u041f\u041e \u0438 \u0432\u0435\u0440\u0441\u0438\u0438<\/summary>\n<div class=\"spoiler__content\">\n<ol>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e CSP \u0432\u0435\u0440\u0441\u0438\u0438 5.0 &#8212; \u0443 \u043c\u0435\u043d\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f 5.0.11944 \u041a\u04211, \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0432 \u042d\u041f.<\/p>\n<\/li>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e TSP Client 2.0 \u0438 \u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e OCSP Client 2.0 &#8212; \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u043f\u043e\u043a\u0443\u043f\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u0430 \u0434\u043b\u044f \u0433\u0430\u0439\u0434\u0430 \u043c\u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0441\u0440\u043e\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e .NET Client \u0432\u0435\u0440\u0441\u0438\u0438 1.0.7132.2 &#8212; \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u0442\u043e\u0433\u043e \u0433\u0430\u0439\u0434\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0438 \u0432\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0438\u0441\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e. \u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u043d\u0442\u0443\u0440.\u041a\u0440\u0438\u043f\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u0435\u043d, \u043d\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438. \u0412 \u043d\u0435\u043c \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u041a\u042d\u041f, \u0423\u041a\u042d\u041f \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0432 \u0435\u0435 \u0444\u0430\u0439\u043b\u044b.<\/p>\n<\/li>\n<\/ol>\n<\/div>\n<\/details>\n<h2>\u0422\u0430\u043a, \u0430 \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435?<\/h2>\n<p>\u0410 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043d\u0430\u0434\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u0442\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u0443\u044e \u042d\u041f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 .sig \u0441\u043e \u0448\u0442\u0430\u043c\u043f\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0438 \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e\u043c \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0438:<\/p>\n<ol>\n<li>\n<p>\u042d\u041f \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 <a href=\"https:\/\/www.gosuslugi.ru\/pgu\/eds\/\" rel=\"noopener noreferrer nofollow\">\u043d\u0430 \u043f\u0440\u043e\u0442\u0430\u043b\u0435 \u0413\u043e\u0441\u0443\u0441\u043b\u0443\u0433<\/a>, \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438 \u042d\u041f \u0444\u043e\u0440\u043c\u0430\u0442\u0430 PKCS#7 \u0432 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0445;<\/p>\n<\/li>\n<li>\n<p>\u041a\u0440\u0438\u043f\u0442\u043e\u0410\u0420\u041c \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0438<\/p>\n<ol>\n<li>\n<p>\u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442 \u043f\u043e\u043b\u0435 &#171;\u0412\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u042d\u041f&#187; &#8212; \u0432 \u043a\u043e\u043d\u0446\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u043e\u043a\u043d\u043e, \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u042d\u041f \u0438 \u043a\u0440\u0430\u0442\u043a\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0435\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430<\/p>\n<figure class=\"\"><figcaption>\u0421\u0442\u043e\u0431\u0435\u0446 &#171;\u0412\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u0446\u0438\u044f \u042d\u041f&#187;<\/figcaption><\/figure>\n<\/li>\n<li>\n<p>\u0412 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0435 (\u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u043a\u043b\u0438\u043a \u043f\u043e \u0437\u0430\u043f\u0438\u0441\u0435 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435) \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 &#171;\u0428\u0442\u0430\u043c\u043f\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438&#187; \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0435 \u0435\u0441\u0442\u044c \u043e\u0431\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438 \u043f\u043e \u043d\u0438\u043c \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f:<\/p>\n<ol>\n<li>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u044c:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<\/li>\n<li>\n<p>\u0414\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>\u0412 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0435\u0441\u0442\u044c \u0431\u043b\u043e\u043a\u0438 &#171;\u0414\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u043f\u043e\u0434\u043b\u0438\u043d\u043d\u043e\u0441\u0442\u0438&#187;, &#171;\u0428\u0442\u0430\u043c\u043f \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u044c&#187; \u0438 &#171;\u0412\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f&#187;. \u0414\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f: \u0435\u0441\u043b\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u041a\u042d\u041f, \u0442\u043e \u043e\u0442\u0447\u0435\u0442 \u043f\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u043c \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 \u0423\u041a\u042d\u041f.<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>\u041a\u043e\u043d\u0442\u0443\u0440.\u041a\u0440\u0438\u043f\u0442\u043e \u043f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0432\u044b\u0434\u0430\u0441\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0430, \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c: <\/p>\n<figure class=\"full-width\"><figcaption>\u0423\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0430<\/figcaption><\/figure>\n<\/li>\n<\/ol>\n<h2>\u0421\u043e\u0431\u0435\u0440\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0413\u041e\u0421\u0422 \u0420 34.11-2012 256 bit<\/h2>\n<p>\u0413\u0430\u0439\u0434 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0430\u043f\u043e\u0432. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u0441\u0431\u043e\u0440\u043a\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u0430 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u043c <a href=\"https:\/\/github.com\/CryptoPro\/DotnetCoreSampleProject\" rel=\"noopener noreferrer nofollow\">DotnetCoreSampleProject<\/a> &#8212; \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u044f \u0431\u0443\u0434\u0443 \u043d\u0430 \u043d\u0435\u0435 \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f.<\/p>\n<h3>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u043e\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443<\/h3>\n<p>&#8230; \u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u043c \u0442\u0443\u0434\u0430 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435.<\/p>\n<p>\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 2 \u044d\u0442\u0430\u043f\u0430 &#8212; \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043e\u0431\u0430, \u0447\u0442\u043e\u0431\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e. \u0412 \u043f\u0430\u043f\u043a\u0443 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043f\u043e\u0434\u043f\u0430\u043f\u043a\u0438 .\\runtime \u0438 .\\packages<\/p>\n<h4>I &#8212; \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0431\u0435\u0437 \u0441\u0431\u043e\u0440\u043a\u0438 corefx \u0434\u043b\u044f Windows<\/h4>\n<ol>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u041a\u0440\u0438\u043f\u0442\u043e\u041f\u0440\u043e 5.0 \u0438 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0430\u044f \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f. &#8212; \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043f\u043e\u0434\u043e\u0448\u043b\u0430 \u0432\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0432 \u042d\u041f;<\/p>\n<\/li>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 <a href=\"https:\/\/dotnet.microsoft.com\/download\/dotnet-core\/3.1\" rel=\"noopener noreferrer nofollow\"><u>core 3.1 sdk \u0438 runtime<\/u><\/a> \u0438 <a href=\"https:\/\/www.microsoft.com\/ru-ru\/download\/details.aspx?id=48145\" rel=\"noopener noreferrer nofollow\">\u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u043c\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 Visual C++ \u0434\u043b\u044f Visual Studio 2015<\/a> \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u043e \u0441\u0442\u0443\u0434\u0438\u0435\u0439; \u043f\u0440\u0438\u043c.: \u043d\u0430 II \u044d\u0442\u0430\u043f\u0435 \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0447\u0435\u0440\u0435\u0437 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a \u0441\u0442\u0443\u0434\u0438\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u041f\u041e \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 C++ &#8212; \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 DIA SDK.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0434\u0430\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b DOTNET_MULTILEVEL_LOOKUP \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0 &#8212; \u043d\u0435 \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e, \u043d\u043e \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u044d\u0442\u043e \u0435\u0441\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 2 \u0444\u0430\u0439\u043b\u0430 \u0438\u0437 <a href=\"https:\/\/github.com\/CryptoPro\/corefx\/releases\" rel=\"noopener noreferrer nofollow\">\u0440\u0435\u043b\u0438\u0437\u0430 corefx<\/a> (package_windows_debug.zip \u0438 runtime-debug-windows.zip) &#8212; \u043e\u043d\u0438 \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412 \u0433\u0430\u0439\u0434\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u0440\u0441\u0438\u044f v3.1.1-cprocsp-preview4.325 \u043e\u0442 04.02.2021:<\/p>\n<ol>\n<li>\n<p>package_windows_debug.zip \u0440\u0430\u0441\u043f\u0430\u043a\u0443\u0439\u0442\u0435 \u0432 .\\packages<\/p>\n<\/li>\n<li>\n<p>runtime-debug-windows.zip \u0440\u0430\u0441\u043f\u0430\u043a\u0443\u0439\u0442\u0435 \u0432 .\\runtime<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u0430\u043a\u0435\u0442\u043e\u0432 NuGet \u0432 \u0444\u0430\u0439\u043b\u0435 %appdata%\\NuGet\\NuGet.Config &#8212; \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0443\u0442\u044c .\\packages \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0439 \u0432\u0430\u043c\u0438 \u043f\u0430\u043f\u043a\u0435. \u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0435\u0441\u0442\u044c \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0435\u0438\u0438. \u0414\u043b\u044f \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0447\u0435\u0440\u0435\u0437 VS Community;<\/p>\n<\/li>\n<li>\n<p>\u0421\u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0439\u0442\u0435 <a href=\"https:\/\/github.com\/CryptoPro\/NetStandard.Library\/tree\/master\/nugetReady\/netstandard.library\" rel=\"noopener noreferrer nofollow\">NetStandard.Library<\/a> \u0432 .\\ \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 PowerShell \u0441\u043a\u0440\u0438\u043f\u0442 (\u0432\u0437\u044f\u0442 \u0438\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438), \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b \u0432 $env:userprofile\\.nuget\\packages\\<\/p>\n<pre><code class=\"powershell\">git clone https:\/\/github.com\/CryptoProLLC\/NetStandard.Library New-Item -ItemType Directory -Force -Path \"$env:userprofile\\.nuget\\packages\\netstandard.library\" Copy-Item -Force -Recurse \".\\NetStandard.Library\\nugetReady\\netstandard.library\" -Destination \"$env:userprofile\\.nuget\\packages\\\"<\/code><\/pre>\n<\/li>\n<li>\n<p>\u0421\u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0439\u0442\u0435 \u0440\u0435\u043f\u0438\u0437\u0438\u0442\u043e\u0440\u0438\u0439 <a href=\"https:\/\/github.com\/CryptoProLLC\/DotnetCoreSampleProject\" rel=\"noopener noreferrer nofollow\">DotnetCoreSampleProject<\/a> \u0432 .\\<\/p>\n<\/li>\n<li>\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0444\u0430\u0439\u043b&nbsp;.\\DotnetSampleProject\\DotnetSampleProject.csproj &#8212; \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043e\u043a System.Security.Cryptography.Pkcs.dll \u0438 System.Security.Cryptography.Xml.dll \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u043f\u043e\u043b\u043d\u044b\u0435 \u043f\u0443\u0442\u0438 \u043a .\\runtime;<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u043f\u0430\u043f\u043a\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u042f \u0441\u043e\u0431\u0438\u0440\u0430\u043b \u0447\u0435\u0440\u0435\u0437 Visual Studio \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<\/li>\n<\/ol>\n<h4>II &#8212; \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u043e \u0441\u0431\u043e\u0440\u043a\u043e\u0439 corefx \u0434\u043b\u044f Windows<\/h4>\n<ol>\n<li>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 1-3 \u0438 6-\u0439 \u0448\u0430\u0433\u0438 \u0438\u0437 I \u044d\u0442\u0430\u043f\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0421\u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0439\u0442\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 <a href=\"https:\/\/github.com\/CryptoPro\/corefx\" rel=\"noopener noreferrer nofollow\">corefx<\/a> \u0432 .\\<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u0431\u043e\u0440\u043a\u0443 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 .\\corefx\\build.cmd &#8212; \u043d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 DIA SDK<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0448\u0430\u0433\u0438 5, 7-9 \u0438\u0437 I \u044d\u0442\u0430\u043f\u0430. \u0412\u043c\u0435\u0441\u0442\u043e \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0433\u043e \u043f\u0443\u0442\u0438 .\\packages \u0443\u043a\u0430\u0436\u0438\u0442\u0435 .\\corefx\\artifacts\\packages\\Debug\\NonShipping, \u0430 \u0432\u043c\u0435\u0441\u0442\u043e .\\runtime \u0443\u043a\u0430\u0436\u0438\u0442\u0435 .\\corefx\\artifacts\\bin\\runtime\\netcoreapp-Windows_NT-Debug-x64<\/p>\n<\/li>\n<\/ol>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0443 \u0432\u0430\u0441 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0413\u041e\u0421\u0422 \u0420 34.11-2012 256 bit.<\/p>\n<h2>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043a\u043e\u0434\u0438\u043c<\/h2>\n<p>\u041f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f 2 COM \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438: &#171;CAPICOM v2.1 Type Library&#187; \u0438 &#171;Crypto-Pro CAdES 1.0 Type Library&#187;. \u041e\u043d\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0423\u041a\u042d\u041f.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c\u0441\u044f BASE64 \u0441\u0442\u0440\u043e\u043a\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0430\u044f \u0432 \u0441\u0435\u0431\u0435 PDF-\u0444\u0430\u0439\u043b. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0432 \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c hash-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u043b\u0430.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0431\u044b\u043b \u0432\u0437\u044f\u0442 \u0441\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446 <a href=\"https:\/\/www.cryptopro.ru\/forum2\/default.aspx?g=posts&amp;t=4804&amp;p=2\" rel=\"noopener noreferrer nofollow\">\u041f\u043e\u0434\u043f\u0438\u0441\u044c PDF \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0423\u042d\u0426\u041f- Page 2 (cryptopro.ru)<\/a> \u0438 <a href=\"https:\/\/www.cryptopro.ru\/forum2\/default.aspx?g=posts&amp;t=10535\" rel=\"noopener noreferrer nofollow\">\u041f\u043e\u0434\u043f\u0438\u0441\u044c \u041d\u0415\u041e\u041f\u0420\u0415\u0414\u0415\u041b\u0415\u041d\u0410 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0423\u042d\u0426\u041f \u0434\u043b\u044f PDF \u043d\u0430 c# (cryptopro.ru)<\/a>, \u043d\u043e \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0434\u043b\u044f \u0448\u0442\u0430\u043c\u043f\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043d\u0430 PDF \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442. \u041a\u043e\u0434 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0433\u0430\u0439\u0434\u0430 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u043d \u043f\u043e\u0434 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b.<\/p>\n<p>\u0423\u0441\u043b\u043e\u0432\u043d\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 4 \u044d\u0442\u0430\u043f\u0430:<\/p>\n<ol>\n<li>\n<p>\u041f\u043e\u0438\u0441\u043a \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 &#8212; \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u043e\u0442\u043f\u0435\u0447\u0430\u0442\u043a\u0443 \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0427\u0442\u0435\u043d\u0438\u0435 \u0431\u0430\u0439\u0442\u043e\u0432 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0423\u041a\u042d\u041f;<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0440\u044f\u0434\u043e\u043c \u0441 \u0444\u0430\u0439\u043b\u043e\u043c.<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"cs\">using CAdESCOM; using CAPICOM; using System; using System.Globalization; using System.IO; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.Xml; using System.Text; using System.Threading.Tasks; using System.Xml;  public static void Main() {   \/\/\u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0434\u043b\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \tX509Certificate2 gostCert = GetX509Certificate2(\"\u043e\u0442\u043f\u0435\u0447\u0430\u0442\u043e\u043a\");   \/\/\u0424\u0430\u0439\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c   byte[] fileBytes = File.ReadAllBytes(\"C:\\\\\u0422\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0435.pdf\");   \/\/\u0424\u0430\u0439\u043b \u043e\u0442\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0438   byte[] signatureBytes = SignWithAdvancedEDS(fileBytes, gostCert);   \/\/\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438   File.WriteAllBytes(\"C:\\\\Users\\\\mikel\\\\Desktop\\\\\u0422\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0435.pdf.sig\", signatureBytes); }  \/\/\u041f\u043e\u0438\u0441\u043a \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 public static X509Certificate2 GetX509Certificate2(string thumbprint) {   X509Store store = CreateStoreObject(\"My\", StoreLocation.CurrentUser);   store.Open(OpenFlags.ReadOnly);    X509Certificate2Collection certCollection =     store.Certificates.Find(X509FindType.FindByThumbprint, thumbprint, false);    X509Certificate2Enumerator enumerator = certCollection.GetEnumerator();   X509Certificate2 gostCert = null;   while (enumerator.MoveNext())     gostCert = enumerator.Current;   if (gostCert == null)     throw new Exception(\"Certificiate was not found!\");    return gostCert; }  \/\/\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0423\u041a\u042d\u041f public static byte[] SignWithAdvancedEDS(byte[] fileBytes, X509Certificate2 certificate) {   string signature = \"\";      try   {     string tspServerAddress = @\"http:\/\/qs.cryptopro.ru\/tsp\/tsp.srf\";      CPSigner cps = new CPSigner();     cps.Certificate = GetCAPICOMCertificate(certificate.Thumbprint);     cps.Options = CAPICOM_CERTIFICATE_INCLUDE_OPTION.CAPICOM_CERTIFICATE_INCLUDE_WHOLE_CHAIN;     cps.TSAAddress = tspServerAddress;      CadesSignedData csd = new CadesSignedData();     csd.ContentEncoding = CADESCOM_CONTENT_ENCODING_TYPE.CADESCOM_BASE64_TO_BINARY;     csd.Content = Convert.ToBase64String(fileBytes);      \/\/\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 CAdES BES     signature = csd.SignCades(cps, CADESCOM_CADES_TYPE.CADESCOM_CADES_BES, true, CAdESCOM.CAPICOM_ENCODING_TYPE.CAPICOM_ENCODE_BASE64);     csd.VerifyCades(signature, CADESCOM_CADES_TYPE.CADESCOM_CADES_BES, true);          \/\/\u0414\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 CAdES BES \u0434\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0438 CAdES X Long Type 1      \/\/(\u0432\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0430 \u0443\u0436\u0435 CAdES X Long Type 1)     signature = csd.EnhanceCades(CADESCOM_CADES_TYPE.CADESCOM_CADES_X_LONG_TYPE_1, tspServerAddress, CAdESCOM.CAPICOM_ENCODING_TYPE.CAPICOM_ENCODE_BASE64);     csd.VerifyCades(signature, CADESCOM_CADES_TYPE.CADESCOM_CADES_X_LONG_TYPE_1, true);   }   catch (Exception ex)   {     throw ex;   }   return Convert.FromBase64String(signature); }<\/code><\/pre>\n<h3>\u041f\u0440\u043e\u0431\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a<\/h3>\n<p>\u0414\u043b\u044f <\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-319505","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=319505"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319505\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=319505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=319505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=319505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}