{"id":504251,"date":"2026-11-21T19:07:14","date_gmt":"2026-11-21T16:07:14","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=504251"},"modified":"2026-11-21T19:07:14","modified_gmt":"2026-11-21T16:07:14","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=504251","title":{"rendered":"\u0418\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0435 RSA\u2011\u043a\u043b\u044e\u0447\u0438 \u0438\u0437\u00a0USB\u2011\u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0438 \u0441\u043c\u0430\u0440\u0442\u2011\u043a\u0430\u0440\u0442"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0421\u043d\u043e\u0432\u0430 \u0432\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442, \u0432\u00a0\u0441\u0432\u043e\u0435\u0439 <a href=\"https:\/\/habr.com\/ru\/articles\/1098398\/\" rel=\"noopener nofollow\">\u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b \u043e\u0431\u00a0\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u043c \u043a\u0435\u0439\u0441\u0435: \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 user\u2011space \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0434\u043b\u044f\u00a0\u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u043c\u0430\u0440\u0442\u2011\u043a\u0430\u0440\u0442\u0430\u043c\u0438 \u0438 \u0442\u043e\u043a\u0435\u043d\u0430\u043c\u0438 \u043d\u0430\u00a0Android. \u0412\u00a0\u043d\u0435\u0439 \u044f \u0441\u0445\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u0448\u0435\u043b\u0441\u044f \u043f\u043e\u00a0\u0432\u0441\u0435\u043c\u0443 \u0441\u0442\u0435\u043a\u0443 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u00a0\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: PKCS#11, PC\/SC, CCID. \u0418 \u0434\u0430\u0436\u0435 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043b \u0441\u0445\u0435\u043c\u0443 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u0441\u0435\u0445 \u044d\u0442\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f\u00a0\u0436\u0435 \u044f \u0445\u043e\u0447\u0443 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043d\u0430\u00a0PKCS#11, \u0442\u0430\u043a \u043a\u0430\u043a\u00a0\u0438\u043c\u0435\u043d\u043d\u043e \u0441\u00a0\u043d\u0438\u043c 90% \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 (\u043a\u043e\u043c\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e) \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442. \u0412\u00a0\u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043e\u0440\u0438\u0438 \u0438\u0437\u00a0\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u0432 \u0438 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043e\u0434\u0430. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e\u00a0\u2014 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f\u00a0\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430 \u0438\u0437\u00a0\u043d\u0435\u0433\u043e \u0432\u00a0\u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u044b \u0442\u0443\u0442, \u0432\u00a0\u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<h2>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u00a0\u044d\u0442\u0438\u043a\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u044b\u043b\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u00a0\u0441\u043e\u0437\u0438\u0434\u0430\u043d\u0438\u0435 \u0438 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u00ab\u0434\u0432\u0443\u0445 \u043c\u0438\u0440\u043e\u0432\u00bb, \u0442\u043e \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442 \u0434\u043b\u044f\u00a0\u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0447\u0442\u043e\u00a0\u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u043e\u0431\u043e\u044e\u0434\u043e\u043e\u0441\u0442\u0440\u044b\u043c \u043c\u0435\u0447\u043e\u043c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043f\u0438\u0448\u0443 \u0441\u0440\u0430\u0437\u0443: <em>\u044f, \u043a\u0430\u043a\u00a0\u0430\u0432\u0442\u043e\u0440, \u043d\u0435\u00a0\u043d\u0435\u0441\u0443 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\u00a0\u0441\u043e\u0445\u0440\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u0432\u0430\u0448\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439, \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435<\/em><\/p>\n<p>\u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0432\u0441\u0435, \u0447\u0442\u043e\u00a0\u0432\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0435 \u043d\u0430\u00a0\u0441\u0432\u043e\u0438\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445\u00a0\u2014 \u0432\u044b \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043d\u0430\u00a0\u0441\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0445 \u0438 \u0440\u0438\u0441\u043a, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0441\u0435 \u0447\u0442\u043e\u00a0\u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u0433\u0434\u0435 \u0446\u0435\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0438\u00a0\u2014 \u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0435\u0442\u0430\u0446\u0438\u044f \u0438\u043b\u0438\u00a0\u0443\u0442\u0435\u0440\u044f \u043a\u043b\u044e\u0447\u0435\u0439.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430 \u0432\u044b \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445, \u043d\u0435\u00a0\u0431\u0435\u0433\u0438\u0442\u0435 \u0441\u043b\u043e\u043c\u044f \u0433\u043e\u043b\u043e\u0432\u0443 \u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0431\u00a0\u044d\u0442\u043e\u043c \u0432\u00a0\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u0441\u044e\u0434\u0430, \u043b\u0443\u0447\u0448\u0435 \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0432\u0435\u043d\u0434\u043e\u0440\u0443 \u0434\u043b\u044f\u00a0\u043d\u0430\u0447\u0430\u043b\u0430.<\/p>\n<p><em>\u0418 \u0434\u0430, \u044f \u0441\u043c\u043e\u0433 \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u043a\u043b\u044e\u0447 \u0438\u0437\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430 \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0432\u043e\u0435\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430! <\/em>\u041d\u043e\u00a0\u044d\u0442\u043e \u0431\u044b\u043b \u043a\u043b\u044e\u0447, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0441\u0430\u043c \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0432\u00a0\u0442\u043e\u043a\u0435\u043d, \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043e\u0441\u043b\u0430\u0431\u0438\u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0435\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f.<\/p>\n<h2>\u0422\u0435\u043e\u0440\u0438\u044f \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u044b<\/h2>\n<p>\u041f\u043e\u0434\u00a0pkcs11, \u0432\u00a0\u043f\u043e\u0432\u0441\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u043c \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0438, \u043e\u0431\u044b\u0447\u043d\u043e \u0438\u043c\u0435\u044e\u0442 \u0432\u00a0\u0432\u0438\u0434\u0443 \u043f\u0440\u043e\u0441\u0442\u0443\u044e.dll\u2011 \u0438\u043b\u0438.so\u2011\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443, \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043f\u043e\u0434\u00a0\u043d\u0443\u0436\u043d\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u0438 \u041e\u0421, \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u043e\u043a\u0435\u043d\u0430\u043c\u0438 \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442 \u0438\u0437, \u043a\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0443, <a href=\"https:\/\/github.com\/opensc\/opensc\" rel=\"noopener nofollow\">OpenSC<\/a>.<\/p>\n<p>\u041d\u0430\u00a0\u0434\u0435\u043b\u0435 \u0432\u0441\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435, pksc \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u00ab<em>Public Key Cryptography Standards<\/em>\u00bb, \u0442\u043e \u0435\u0441\u0442\u044c \u044d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u0432 \u0434\u043b\u044f\u00a0\u0440\u0430\u0431\u043e\u0442\u044b \u0441\u00a0\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0438\u043c\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u043c\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432\u0441\u0435, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442\u00a0\u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0439 \u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432, \u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044f \u0438\u0445 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c, \u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c\u0438 \u043d\u0430\u0434 \u043a\u043b\u044e\u0447\u0430\u043c\u0438. <\/p>\n<p>PKCS#11, \u043f\u043e\u043c\u0438\u043c\u043e \u043d\u043e\u043c\u0435\u0440\u0430, \u0438\u043c\u0435\u0435\u0442 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435: \u00ab<em>Cryptographic Token Interface (Cryptoki)<\/em>\u00bb. \u0427\u0442\u043e\u00a0\u043d\u0430\u0441 \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442, \u0442\u0430\u043a \u044d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0434\u043b\u044f\u00a0\u0440\u0430\u0431\u043e\u0442\u044b \u0441\u00a0\u0442\u043e\u043a\u0435\u043d\u043e\u043c, \u0438 \u043d\u0430\u0431\u043e\u0440\u044b \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u0438 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432. \u041d\u043e\u00a0\u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 \u0432\u00a0\u0442\u0435\u043e\u0440\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0433\u043e, \u0432\u0441\u0435 \u043f\u0440\u043e\u044f\u0441\u043d\u0438\u0442\u0441\u044f \u0432\u00a0\u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u0440\u0438\u043a\u043e\u0441\u043d\u0435\u043c\u0441\u044f \u043a\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0436\u0435\u043b\u0435\u0437\u0443 \u0438 \u0441\u0430\u043c\u0438 \u043f\u043e\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u043c.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/f5\/ba\/88\/f5ba889ad3e04a5fb568ec1233707a83.png\" width=\"675\" height=\"485\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/f5\/ba\/88\/f5ba889ad3e04a5fb568ec1233707a83.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/f5\/ba\/88\/f5ba889ad3e04a5fb568ec1233707a83.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u041e\u043a\u043e\u043d\u0447\u0438\u0442\u044c \u043f\u043e\u0433\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0432\u00a0\u0442\u0435\u043e\u0440\u0438\u044e \u0445\u043e\u0447\u0443 \u043b\u0438\u0448\u044c \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0445\u0435\u043c\u043e\u0439. \u0423\u00a0\u0442\u043e\u043a\u0435\u043d\u0430 \u0435\u0441\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>\u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 (\u043d\u0430\u0437\u043e\u0432\u0435\u043c \u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u043d\u043e \u0442\u0430\u043a)\u00a0\u2014 \u044d\u0442\u043e \u0438\u043c\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0438 \u043c\u0435\u0442\u043a\u0430 (label), \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0434\u043b\u044f\u00a0\u043d\u0430\u0441 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u00a0\u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u0442\u0430\u043a \u043a\u0430\u043a\u00a0\u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u00a0\u043d\u0438\u043c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a\u00a0\u0442\u043e\u043a\u0435\u043d\u0443 \u0432\u00a0\u043a\u043e\u0434\u0435;<\/p>\n<\/li>\n<li>\n<p>\u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b\u00a0\u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u00a0\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 RSA, ECC, AES, key wrapping (AES\/RSA); \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u044f\u0441\u044c \u043d\u0430\u00a0\u044d\u0442\u0438\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430\u0445, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u0438\u0437\u00a0\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u00a0\u2014 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043a\u0430\u043a\u00a0\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u043e\u043a\u0435\u043d\u0430, \u0442\u0430\u043a \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u0432\u00a0\u0442\u043e\u043a\u0435\u043d, \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u00a0\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u043c \u043a\u043b\u044e\u0447\u0435\u0439, \u0430\u00a0\u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432, \u0442\u0430\u043a\u00a0\u0436\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0432\u00a0\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0435.<\/p>\n<\/li>\n<\/ul>\n<h2>\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434 \u0438 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438<\/h2>\n<p>\u041a\u0430\u043a\u00a0\u0438 \u0432\u00a0\u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u0432\u00a0\u044d\u0442\u043e\u0439 \u044f \u0442\u043e\u0436\u0435 \u0445\u043e\u0447\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0443 dotnet, \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437\u00a0\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430, \u043a\u00a0\u0442\u043e\u043c\u0443\u00a0\u0436\u0435 \u044f \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438\u0437\u00a0\u0441\u0432\u043e\u0438\u0445 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u0430\u00a0\u043e\u043d\u0438 \u0443\u0436\u0435 \u0431\u044b\u043b\u0438 \u043d\u0430\u00a0\u0434\u043e\u0442\u043d\u0435\u0442\u0435.<\/p>\n<p>\u0412\u00a0\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u044f \u0445\u043e\u0447\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0443\u044e\u0441\u044f \u043d\u0435\u00a0\u0441\u0442\u043e\u043b\u044c \u0434\u0430\u0432\u043d\u043e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044e <a href=\"https:\/\/learn.microsoft.com\/en-us\/dotnet\/core\/sdk\/file-based-apps\" rel=\"noopener nofollow\"><em>file\u2011based apps<\/em><\/a>. \u041e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043c\u043d\u0435 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u044c\u0441\u044f \u043a\u00a0\u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043d\u0433\u0443 \u0431\u0435\u0437\u00a0\u0434\u043e\u043b\u0433\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, \u0441\u0440\u043e\u0434\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u00a0\u043a\u0430\u043a\u0438\u043c\u2011\u043d\u0438\u0431\u0443\u0434\u044c Python<em>.<\/em><\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e\u00a0Visual Studio \u0438\u0437\u00a0\u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u043d\u0435\u00a0\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u00a0\u043e\u0434\u043d\u043e\u0444\u0430\u0439\u043b\u043e\u0432\u044b\u043c\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438 (\u0438\u0440\u043e\u043d\u0438\u0447\u043d\u043e, \u0434\u0430), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u043b\u0438 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u0445\u043e\u0447\u0435\u0442 \u0441\u0430\u043c \u0447\u0442\u043e\u2011\u043d\u0438\u0431\u0443\u0434\u044c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u00a0\u0441\u043a\u0440\u0438\u043f\u0442\u0435, \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <em>VS Code + C# Dev Kit<\/em> (\u043d\u043e \u0438 \u0442\u0443\u0442 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441\u00a0\u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c) \u0438\u043b\u0438\u00a0\u043f\u0440\u043e\u0441\u0442\u043e <a href=\"https:\/\/www.jetbrains.com\/rider\/\" rel=\"noopener nofollow\"><em>Project Rider<\/em><\/a><em>.<\/em> <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u044c dll\/so \u0444\u0430\u0439\u043b \u0434\u043b\u044f\u00a0\u0441\u0432\u043e\u0435\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430, \u0438 \u0441\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e\u0435\u00a0\u2014 \u044d\u0442\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430, \u0434\u043b\u044f\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u043d \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d. \u041e\u0447\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043e \u0432\u00a0\u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e x86-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f\u00a0\u0442\u043e\u043a\u0435\u043d\u0430 (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0439 \u0442\u043e\u043a\u0435\u043d), \u043d\u043e, \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, x64-\u0432\u0435\u0440\u0441\u0438\u0438 \u0447\u0430\u0441\u0442\u043e \u043b\u0435\u0436\u0430\u0442 \u0432 <em>C:\\Windows\\System32\u00a0<\/em>\u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u043e\u0442\u00a0\u0432\u0435\u043d\u0434\u043e\u0440\u0430.<\/p>\n<p>\u0418 \u0441\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e\u0435: \u0435\u0441\u043b\u0438 \u0442\u044b \u043d\u0435\u00a0\u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0448\u044c \u0447\u0442\u043e\u00a0\u0434\u0435\u043b\u0430\u0435\u0448\u044c, \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0447\u0435\u0448\u044c \u043f\u043e\u0442\u044b\u043a\u0430\u0442\u044c \u0442\u0443\u0442 \u0438 \u0442\u0430\u043c, <strong>\u043d\u0435\u00a0\u0434\u0435\u043b\u0430\u0439 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u00a0\u0431\u043e\u0435\u0432\u043e\u043c \u0442\u043e\u043a\u0435\u043d\u0435, \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c\u0438 \u0438 \u043a\u043b\u044e\u0447\u0430\u043c\u0438! <\/strong>\u041a\u0430\u043a\u00a0\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0443\u0447\u0438\u0448\u044c\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043c\u043e\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c, \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438 \u043a\u00a0\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u043d\u0430\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0442\u043e\u043a\u0435\u043d\u0435.<\/p>\n<p>\u0412\u00a0\u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 <a href=\"https:\/\/github.com\/softhsm\/SoftHSMv2\" rel=\"noopener nofollow\">SoftHSM2<\/a> (\u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 windows \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/disig\/SoftHSM2-for-Windows\/releases\/tag\/v2.5.0\" rel=\"noopener nofollow\">\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a<\/a>). \u042d\u0442\u043e \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 pkcs11-\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430, \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a\u00a0\u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0435\u0439 \u0438\u0437\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432.<\/p>\n<p>\u0412\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u00a0pkcs11, \u043f\u043e\u043c\u0438\u043c\u043e \u043c\u043e\u0435\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0431\u0443\u0434\u0443\u0442 \u0435\u0449\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e <a href=\"https:\/\/github.com\/OpenSC\/OpenSC\/releases\/tag\/0.27.1\" rel=\"noopener nofollow\">OpenSC<\/a>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u0442\u043e\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c.<\/p>\n<p>\u0421\u043e \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u044f \u0431\u0443\u0434\u0443 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u0432\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 <em>windows<\/em>, \u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430 <em>PowerShell<\/em>. \u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0448\u044c \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u043d\u0430 <em>linux<\/em>, \u043c\u043e\u0436\u0435\u0448\u044c \u0437\u0430\u043a\u0438\u043d\u0443\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043e\u0442\u0441\u044e\u0434\u0430 \u0432\u00a0\u0418\u0418, \u043e\u043d \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u0442 \u0432\u0441\u0451 \u043d\u0430 <em>bash<\/em>.<\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c SoftHSM2<\/h2>\n<p>\u041c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0448\u0430\u0433, \u0435\u0441\u043b\u0438 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0448\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f\u00a0\u0441\u0432\u043e\u0435\u0433\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430, \u0438\u043b\u0438\u00a0\u0443\u00a0\u0442\u0435\u0431\u044f \u0443\u0436\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0441\u0432\u043e\u0439 SoftHSM2\u00a0(\u0442\u043e\u0433\u0434\u0430 \u0442\u0435\u0431\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a\u043e\u043c\u0430\u043d\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0442\u0443\u0442 \u0434\u0430\u043b\u044c\u0448\u0435).<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041d\u0430\u00a0windows, \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 SoftHSM2\u00a0\u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u043e\u0433\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a\u0430, \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b (\u0435\u0441\u043b\u0438 \u0434\u043e\u00a0\u044d\u0442\u043e\u0433\u043e \u043e\u043d \u0431\u044b\u043b \u0443\u00a0\u0442\u0435\u0431\u044f \u0437\u0430\u043f\u0443\u0449\u0435\u043d).<\/p>\n<blockquote>\n<p>SOFTHSM2_CONF = D:\\SoftHSM2\\etc\\softhsm2.conf<\/p>\n<\/blockquote>\n<p>\u0414\u043e\u0431\u0430\u0432\u044c \u044d\u0442\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0432\u00a0\u0441\u0432\u043e\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u044b, \u0441\u00a0\u043f\u043e\u043f\u0440\u0430\u0432\u043a\u043e\u0439 \u043d\u0430\u00a0\u0441\u0432\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438.<\/p>\n<p>\u0414\u043b\u044f\u00a0\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u00a0PowerShell:<\/p>\n<pre><code class=\"powershell\"># Paths to tools and SoftHSM2 library (adjust if installed elsewhere)$Pkcs11Tool = \"C:\\Program Files\\OpenSC Project\\OpenSC\\tools\\pkcs11-tool.exe\"$SoftHsmLib = \"D:\\SoftHSM2\\lib\\softhsm2-x64.dll\"# Token parameters$Slot    = \"0\"$Label   = \"mytoken\"$SoPin   = \"0000\"   # Security Officer PIN (required to initialize the token)$UserPin = \"0000\"   # Normal User PIN# 1. Initialize the token on the uninitialized slot (sets the label and SO PIN)&amp; $Pkcs11Tool --module $SoftHsmLib `    --slot $Slot `    --init-token `    --label $Label `    --so-pin $SoPinif ($LASTEXITCODE -ne 0) {    Write-Error \"Failed to initialize token.\"    exit $LASTEXITCODE}# 2. Initialize the User PIN on the newly labeled token# (SoftHSM reassigns the slot ID upon initialization, so we target it by --token label)&amp; $Pkcs11Tool --module $SoftHsmLib `    --token $Label `    --login `    --so-pin $SoPin `    --init-pin `    --pin $UserPin# 3. Verify the initialized token&amp; $Pkcs11Tool --module $SoftHsmLib --list-slots<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper\"><\/span><\/a><\/div><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0443\u00a0\u0442\u0435\u0431\u044f \u0432\u044b\u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0447\u0442\u043e\u2011\u0442\u043e \u0432\u0440\u043e\u0434\u0435:<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/72\/d4\/32\/72d43237e187149261cf9e0fff877468.png\" width=\"1413\" height=\"265\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/72\/d4\/32\/72d43237e187149261cf9e0fff877468.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/72\/d4\/32\/72d43237e187149261cf9e0fff877468.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e\u00a0\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0443\u0441\u043f\u0435\u0448\u043d\u043e.<\/p>\n<\/div>\n<\/details>\n<h2>\u041f\u0440\u043e\u0439\u0434\u0435\u043c\u0441\u044f \u043f\u043e\u00a0\u043a\u043e\u0434\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c\u00a0\u0436\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043f\u0440\u043e\u00a0\u0442\u043e, \u043a\u0430\u043a\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u0434 \u0434\u043b\u044f\u00a0\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c\u043e\u0441\u0442\u0438. \u041a\u043e\u0433\u0434\u0430 \u0442\u0435\u0431\u0435 \u0432\u044b\u0434\u0430\u044e\u0442 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0434\u043b\u044f\u00a0\u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0438, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432\u00a0\u044d\u0442\u043e\u043c \u0434\u0432\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b: \u0442\u044b \u0438 \u0438\u0437\u0434\u0430\u0442\u0435\u043b\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430.<\/p>\n<p><strong><u>\u0421\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0438\u0437\u0434\u0430\u0442\u0435\u043b\u044f \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430:<\/u><\/strong><\/p>\n<p>\u0423\u00a0\u0438\u0437\u0434\u0430\u0442\u0435\u043b\u0435\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439 \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u00a0\u0442\u043e\u043a\u0435\u043d\u0430\u043c\u0438 (\u0435\u0441\u043b\u0438 \u043c\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e\u00a0\u0442\u0435\u0431\u0435 \u0432\u044b\u0434\u0430\u044e\u0442 \u0442\u043e\u043a\u0435\u043d \u0441\u00a0\u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u0443\u0436\u0435 \u043d\u0430\u00a0\u043c\u0435\u0441\u0442\u0435). \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0442\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0448\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u0443\u044e \u043f\u0430\u0440\u0443 \u0434\u043e\u043c\u0430, \u0430\u00a0\u0432\u00a0\u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0438\u0439 \u0446\u0435\u043d\u0442\u0440 \u0438\u0434\u0435\u0448\u044c \u0441\u00a0\u0446\u0435\u043b\u044c\u044e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0432\u00a0\u0431\u0443\u043c\u0430\u0436\u043a\u0430\u0445 \u043e\u00a0\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430, \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0442\u044b \u044d\u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u0435\u043b\u0430\u0435\u0448\u044c \u0447\u0435\u0440\u0435\u0437 \u041f\u041e\u00a0\u0441\u0430\u043c\u043e\u0433\u043e \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0435\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430. \u0418 \u0442\u0443\u0442 \u0432\u0430\u0436\u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e, \u043a\u0430\u043a\u00a0\u043e\u043d\u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0443\u00a0\u0441\u0435\u0431\u044f, \u0432\u00a0\u043c\u043e\u043c\u0435\u043d\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u00a0\u0442\u043e\u043a\u0435\u043d\u0435\/\u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u043a\u043b\u044e\u0447\u0435\u0439 \u043d\u0430\u00a0\u0442\u043e\u043a\u0435\u043d.<\/p>\n<p>\u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u043a\u043e\u0434 \u043a\u0430\u043a\u00a0\u0434\u043b\u044f\u00a0\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f\u00a0\u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430, \u043c\u0430\u043b\u043e \u0447\u0435\u043c \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f, \u043d\u043e\u00a0\u0432\u00a0\u043d\u0435\u043c \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u0430 \u0432\u0430\u0436\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u0447\u0435\u043a:<\/p>\n<pre><code class=\"cs\">\/\/ Prepare attribute template of new public keyList&lt;IObjectAttribute&gt; publicKeyAttributes =[    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_TOKEN, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_PRIVATE, false),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_LABEL, label),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_ID, ckaId),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_ENCRYPT, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_VERIFY, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_VERIFY_RECOVER, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_WRAP, false),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_MODULUS_BITS, (nuint)AppState.ParsedArgs.RsaKeySize),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_PUBLIC_EXPONENT, [0x01, 0x00, 0x01]),];\/\/ Prepare attribute template of new private keyList&lt;IObjectAttribute&gt; privateKeyAttributes =[    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_TOKEN, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_PRIVATE, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_LABEL, label),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_ID, ckaId),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_SENSITIVE, sensitive),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_EXTRACTABLE, extractable),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_DECRYPT, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_SIGN, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_SIGN_RECOVER, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_UNWRAP, false),];<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0412\u00a0\u044d\u0442\u043e\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u0435 \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u043f\u0430\u0440\u0430 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432:<\/p>\n<pre><code class=\"cs\">session.Factories.ObjectAttributeFactory.Create(CKA.CKA_SENSITIVE, sensitive),session.Factories.ObjectAttributeFactory.Create(CKA.CKA_EXTRACTABLE, extractable),<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u042d\u0442\u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u043a\u043b\u044e\u0447\u0430. <strong>CKA_EXTRACTABLE <\/strong>\u0438\u043c\u0435\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0435\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435, \u0438 \u0435\u0441\u043b\u0438 \u043e\u043d \u0440\u0430\u0432\u0435\u043d <em>true<\/em>, \u0442\u043e \u043a\u043b\u044e\u0447 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0438\u0437\u00a0\u0442\u043e\u043a\u0435\u043d\u0430. \u0421\u00a0\u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0435\u0441\u043b\u0438 \u043e\u043d <em>false<\/em>, \u0442\u043e \u043a\u043b\u044e\u0447 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u00a0\u043f\u043e\u043a\u0438\u043d\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e.<\/p>\n<p>\u0410\u0442\u0440\u0438\u0431\u0443\u0442 <strong>CKA_SENSITIVE <\/strong>\u0436\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u043c\u043e\u0436\u043d\u043e\u00a0\u043b\u0438 \u043a\u043b\u044e\u0447 \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0432\u00a0\u0447\u0438\u0441\u0442\u043e\u043c \u0432\u0438\u0434\u0435 (plaintext), \u0438\u043b\u0438\u00a0\u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u043c \u043a\u043b\u044e\u0447\u043e\u043c \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c.<\/p>\n<p>\u0412\u00a0\u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043c\u0438\u0440\u0435 \u044d\u0442\u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u0434\u0443\u0442 \u0432\u00a0\u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 <strong>CKA_EXTRACTABLE = false <\/strong>\u0438 <strong>CKA_SENSITIVE = true<\/strong>.<\/p>\n<p><strong><u>\u0421\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u0442\u0435\u0431\u044f):<\/u><\/strong><\/p>\n<p>\u0412\u0441\u044f \u043c\u0430\u0433\u0438\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0440\u043e\u0432\u043d\u043e \u0432\u00a0\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u0438\u0437\u0434\u0430\u0442\u0435\u043b\u044c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e (\u0438\u043b\u0438 \u043d\u0435\u0442) \u0441\u0442\u0430\u0432\u0438\u0442 <strong>CKA_EXTRACTABLE = true<\/strong>, \u0432\u0435\u0434\u044c \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u00a0\u0442\u0435\u0431\u044f \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043b\u044e\u0447:<\/p>\n<ol>\n<li>\n<p><strong>CKA_SENSITIVE = false <\/strong>\u2014 \u043a\u043b\u044e\u0447 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u043a\u0430\u043a\u00a0plaintext. \u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0435\u0439, \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0440\u0435\u043c \u0438 \u0447\u0438\u0442\u0430\u0435\u043c \u0435\u0433\u043e \u0438\u0437\u00a0\u0442\u043e\u043a\u0435\u043d\u0430. \u041a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0434\u043b\u044f\u00a0\u044d\u0442\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u0442\u043e\u043a\u0435\u043d \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0432\u043e\u0440\u043e\u0447\u0435\u043d\u043d\u043e\u0439 \u0444\u043b\u0435\u0448\u043a\u043e\u0439.<\/p>\n<\/li>\n<li>\n<p><strong>CKA_SENSITIVE = true <\/strong>\u2014 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0447\u0443\u0442\u044c \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u0442\u044c\u0441\u044f, \u043d\u043e\u00a0\u043d\u0435\u00a0\u0444\u0430\u043a\u0442 \u0447\u0442\u043e\u00a0\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0438\u0437\u0432\u043b\u0435\u0447\u044c. \u0415\u0441\u043b\u0438 \u043a\u043b\u044e\u0447 \u043f\u043e\u043c\u0435\u0447\u0435\u043d \u043a\u0430\u043a\u00a0\u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0442\u043e \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432 \u043e\u0431\u0435\u0440\u0442\u043a\u0438 (key wrapping). \u041d\u041e: \u043e\u0447\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u043e\u043a\u0435\u043d\u044b \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u044e\u0442 \u0434\u0430\u0436\u0435 \u044d\u0442\u043e \u0432\u00a0\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0438 RSA\u2011\u043a\u043b\u044e\u0447\u0435\u0439, \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442\u00a0\u043c\u043e\u0434\u0435\u043b\u0438.<\/p>\n<\/li>\n<\/ol>\n<p>\u041c\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u043a\u043b\u044e\u0447\u0438 \u0432\u00a0\u043e\u0431\u043e\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u0430\u00a0\u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043a\u0430\u043a\u00a0\u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u00a0\u0442\u043e\u043a\u0435\u043d\u0435, \u0442\u0430\u043a \u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439.<\/p>\n<p><a href=\"https:\/\/github.com\/AlexFlexer\/crypto-scripts\" rel=\"noopener nofollow\">https:\/\/github.com\/AlexFlexer\/crypto\u2011scripts<\/a>\u00a0\u2014 \u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0439 \u0435\u0433\u043e \u043a\u00a0\u0441\u0435\u0431\u0435, \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438 <a href=\"https:\/\/dotnet.microsoft.com\/en-us\/download\/dotnet\/10.0\" rel=\"noopener nofollow\">dotnet 10<\/a> \u0438\u043b\u0438\u00a0\u0432\u044b\u0448\u0435.<\/p>\n<h2>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0447\u0430\u0441\u0442\u044c: \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0443\u044f\u0437\u0432\u0438\u043c\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u043d\u0430\u00a0SoftHSM2\u00a0\u0438 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u0438\u0445<\/h2>\n<p>\u0414\u043b\u044f\u00a0\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0443\u044f\u0437\u0432\u0438\u043c\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439, \u043e\u0442\u043a\u0440\u043e\u0439 \u043f\u0430\u043f\u043a\u0443 \u0441\u00a0\u043c\u043e\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c (crypto\u2011scripts), \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438 \u0435\u0433\u043e \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 (\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0432\u043e\u0438\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a SoftHSM2):<\/p>\n<pre><code>dotnet run pkcs11-audit.cs -- --module \"D:\\SoftHSM2\\lib\\softhsm2-x64.dll\" --pin 0000 --manufacturer softhsm --label mytoken --testing false --gen-keys-on-token true<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0422\u0443\u0442:<\/p>\n<ol>\n<li>\n<p><em>\u2011module<\/em>\u00a0\u2014 \u044d\u0442\u043e \u043f\u0443\u0442\u044c \u043a\u00a0\u0442\u0432\u043e\u0435\u0439 \u043f\u0430\u043f\u043a\u0435 \u0441\u00a0SoftHSM2; <\/p>\n<\/li>\n<li>\n<p><em>\u2011pin, \u2011label<\/em>\u00a0\u2014 \u0442\u043e, \u0447\u0442\u043e\u00a0\u043c\u044b \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b\u0438 \u0440\u0430\u043d\u0435\u0435, label \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u0434\u043b\u044f\u00a0\u0442\u043e\u0447\u043d\u043e\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0442\u043e\u043a\u0435\u043d\u0430 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445;<\/p>\n<\/li>\n<li>\n<p><em>\u2011manufacturer<\/em>\u00a0\u2014 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f\u00a0\u0442\u043e\u043a\u0435\u043d\u0430, \u0434\u043b\u044f\u00a0\u043a\u0430\u0436\u0434\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0441\u0432\u043e\u0435;<\/p>\n<\/li>\n<li>\n<p><em>\u2011testing false <\/em>\u2014 \u0440\u0435\u0436\u0438\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043b\u044e\u0447\u0435\u0439, \u043a\u043b\u044e\u0447\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0443\u044f\u0437\u0432\u0438\u043c\u044b\u043c\u0438 \u0434\u043b\u044f\u00a0\u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f, \u0432\u00a0\u0446\u0435\u043b\u044f\u0445 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p><em>\u2011gen\u2011keys\u2011on\u2011token true <\/em>\u2014 \u043c\u0435\u0441\u0442\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0439, \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0442\u0443\u0442 \u043c\u044b \u0434\u043b\u044f\u00a0\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0438\u0445 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u043d\u0430\u00a0\u0441\u0430\u043c\u043e\u043c \u0442\u043e\u043a\u0435\u043d\u0435, \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439.<\/p>\n<\/li>\n<\/ol>\n<p>\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b <em>\u2011manufacturer <\/em>\u0438 <em>\u2011label<\/em> \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043d\u0435\u00a0\u043d\u0430\u00a0\u0442\u043e\u0447\u043d\u043e\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438, \u0430\u00a0\u043f\u043e\u00a0\u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u00ab\u0435\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0432&#8230;\u00bb<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043d\u0430\u0448 \u0448\u0430\u0433\u00a0\u2014 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e\u00a0\u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0443\u044f\u0437\u0432\u0438\u043c\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439. \u0414\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u00a0\u0436\u0435 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code>dotnet run pkcs11-audit.cs -- --module \"D:\\SoftHSM2\\lib\\softhsm2-x64.dll\" --pin 0000 --manufacturer softhsm --label mytoken --testing true --wrap-type aes<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0422\u0443\u0442:<\/p>\n<ol>\n<li>\n<p><em>\u2011testing true <\/em>\u2014 \u0440\u0435\u0436\u0438\u043c \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0439, \u0432\u00a0\u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0432\u0435\u0441 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p><em>\u2011wrap\u2011type aes <\/em>\u2014 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u043b\u044f\u00a0\u043e\u0431\u0435\u0440\u0442\u043a\u0438 (key wrapping), \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u044e\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0438 \u0441\u00a0CKA_SENSITIVE = true.<\/p>\n<\/li>\n<\/ol>\n<p>\u0412\u00a0\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u043e\u043d\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043d\u0430\u00a0SoftHSM2\u00a0\u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u043e\u0431\u0430 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0430:<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/31\/d7\/36\/31d736dfb2ba13411d760119889c7c8b.png\" width=\"408\" height=\"745\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/31\/d7\/36\/31d736dfb2ba13411d760119889c7c8b.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/31\/d7\/36\/31d736dfb2ba13411d760119889c7c8b.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0422\u0435\u043c \u0441\u0430\u043c\u044b\u043c, \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u043a\u043b\u044e\u0447\u0438 \u0441\u00a0\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u043c\u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f.<\/p>\n<hr\/>\n<h2>\u0411\u043e\u043d\u0443\u0441: \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0435\u0439 \u0438\u0437\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430<\/h2>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e\u00a0\u0436\u0435, \u043d\u0430\u043f\u0438\u0441\u0430\u0432 \u0442\u0430\u043a\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u00a0\u043c\u043e\u0433 \u043d\u0435\u00a0\u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430\u00a0\u0441\u0432\u043e\u0438\u0445\u00a0\u0436\u0435 \u0442\u043e\u043a\u0435\u043d\u0430\u0445. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0440\u0430\u0434\u0443\u044e\u0442, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u0430\u043a\u00a0\u0431\u0443\u0434\u0442\u043e \u043d\u0435\u00a0\u043e\u0447\u0435\u043d\u044c.<\/p>\n<p>\u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0432\u044b\u0432\u043e\u0434\u0430 \u043c\u043e\u0435\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u043e\u0441\u043b\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u00a0\u044d\u0442\u0438\u043c\u0438 \u0442\u043e\u043a\u0435\u043d\u0430\u043c\u0438.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/b6\/d5\/81\/b6d581cea14cd5fe8b676e699c9e8467.png\" width=\"1219\" height=\"315\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/b6\/d5\/81\/b6d581cea14cd5fe8b676e699c9e8467.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/b6\/d5\/81\/b6d581cea14cd5fe8b676e699c9e8467.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441\u00a0\u0442\u043e\u0433\u043e, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0440\u0430\u0434\u043e\u0432\u0430\u043b. \u041d\u0430\u00a0\u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435 \u0432\u044b\u0448\u0435 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e\u00a0\u0442\u043e\u043a\u0435\u043d \u043d\u0430\u043f\u0440\u043e\u0447\u044c \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0443\u044f\u0437\u0432\u0438\u043c\u044b. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u00a0\u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u00a0C_WrapKey \u043c\u043d\u0435 \u0441\u0442\u043e\u0438\u043b\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u0432\u0441\u0435\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u043d\u043e\u00a0\u0434\u0430\u0436\u0435 \u0431\u0435\u0437\u00a0\u043d\u0438\u0445, \u0441\u0430\u043c \u0444\u0430\u043a\u0442 \u0447\u0442\u043e\u00a0\u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u00a0\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f\u00a0\u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439, \u0443\u0436\u0435 \u0440\u0430\u0434\u0443\u0435\u0442. \u041d\u0435\u00a0\u0438\u0437\u0432\u043b\u0435\u043a\u0430\u044e\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0438 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442\u00a0\u0442\u043e\u0433\u043e, \u0431\u044b\u043b\u0438\u00a0\u043b\u0438 \u043e\u043d \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0442\u043e\u043a\u0435\u043d\u043e\u043c \u0438\u043b\u0438\u00a0\u043d\u0435\u0442.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/62\/21\/c7\/6221c711218369438ce73cd83c680715.png\" width=\"1215\" height=\"734\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/62\/21\/c7\/6221c711218369438ce73cd83c680715.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/62\/21\/c7\/6221c711218369438ce73cd83c680715.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439\u00a0\u0436\u0435 \u0442\u043e\u043a\u0435\u043d \u043e\u0431\u0440\u0430\u0434\u043e\u0432\u0430\u043b \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435. \u041f\u0440\u0430\u0432\u0434\u0430 \u0442\u0443\u0442 \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u043e \u00ab\u043d\u043e\u00bb: \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u044e\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u00a0\u0431\u044b\u043b\u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043d\u0430\u00a0\u043d\u0435\u043c, \u0447\u0442\u043e\u00a0\u0437\u0432\u0443\u0447\u0438\u0442 \u0432\u00a0\u043a\u0430\u043a\u043e\u0439\u2011\u0442\u043e \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u0434\u0430\u0436\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u0432\u0435\u0434\u044c \u043a\u0430\u043a\u043e\u0439 \u0441\u043c\u044b\u0441\u043b \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0442\u044c \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u00a0\u0431\u044b\u043b \u0432\u00a0\u0442\u043e\u043a\u0435\u043d\u0435, \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0433\u0434\u0435 \u0443\u0433\u043e\u0434\u043d\u043e \u0435\u0449\u0435?<\/p>\n<hr\/>\n<h2>\u0412\u044b\u0432\u043e\u0434?<\/h2>\n<p>\u0412\u00a0\u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b \u043e\u0434\u0438\u043d \u0438\u0437\u00a0\u0441\u0430\u043c\u044b\u0445 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432, \u043d\u0435\u00a0\u0438\u043c\u0435\u044f \u0443\u00a0\u0441\u0435\u0431\u044f \u0434\u043e\u043c\u0430 \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f\u00a0\u0440\u0430\u0431\u043e\u0442\u044b \u0441\u00a0\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0442\u043e\u043a\u0435\u043d\u044b \u043d\u0430\u00a0\u043e\u0448\u0438\u0431\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u00a0\u043a\u043b\u044e\u0447\u0430\u043c\u0438.<\/p>\n<p>\u042f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u043b\u0435\u0431\u0430\u043b\u0441\u044f, \u0430\u00a0\u0441\u0442\u043e\u0438\u0442\u00a0\u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043e\u00a0\u0442\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0445 \u0432\u0435\u0449\u0430\u0445 \u0432\u043e\u043e\u0431\u0449\u0435? \u041d\u043e\u00a0\u043a\u00a0\u043e\u0442\u0432\u0435\u0442\u0443 \u00ab\u0434\u0430\u00bb \u043c\u0435\u043d\u044f \u043f\u043e\u0434\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0430 \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u043e\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e\u00a0\u0432\u00a0\u043a\u0430\u043a\u043e\u043c\u2011\u0442\u043e \u0442\u0430\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0435 <a href=\"https:\/\/www.reddit.com\/r\/cryptography\/comments\/1xbi2im\/a_ca_used_the_number_4_as_private_key_disable\/\" rel=\"noopener nofollow\">\u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0440\u0430\u0432\u0435\u043d 4<\/a>. \u042d\u0442\u0430 \u043d\u043e\u0432\u043e\u0441\u0442\u044c \u0441\u043f\u043e\u0434\u0432\u0438\u0433\u043b\u0430 \u043c\u0435\u043d\u044f \u043d\u0430\u00a0\u043c\u044b\u0441\u043b\u0438, \u0447\u0442\u043e\u00a0\u0434\u0430\u0436\u0435 \u0441\u0430\u043c\u044b\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u043e\u0431\u043e\u0439\u0442\u0438 \u0437\u0430\u0449\u0438\u0442\u0443 \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c\u0441\u044f, \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e\u00a0\u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c\u0441\u044f \u0432\u00a0\u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c.<\/p>\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\/articles\/1110730\/\">https:\/\/habr.com\/ru\/articles\/1110730\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u043d\u043e\u0432\u0430 \u0432\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442, \u0432\u00a0\u0441\u0432\u043e\u0435\u0439 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b \u043e\u0431\u00a0\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u043c \u043a\u0435\u0439\u0441\u0435: \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 user\u2011space \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0434\u043b\u044f\u00a0\u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u043c\u0430\u0440\u0442\u2011\u043a\u0430\u0440\u0442\u0430\u043c\u0438 \u0438 \u0442\u043e\u043a\u0435\u043d\u0430\u043c\u0438 \u043d\u0430\u00a0Android. \u0412\u00a0\u043d\u0435\u0439 \u044f \u0441\u0445\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u0448\u0435\u043b\u0441\u044f \u043f\u043e\u00a0\u0432\u0441\u0435\u043c\u0443 \u0441\u0442\u0435\u043a\u0443 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u00a0\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438: PKCS#11, PC\/SC, CCID. \u0418 \u0434\u0430\u0436\u0435 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043b \u0441\u0445\u0435\u043c\u0443 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u0441\u0435\u0445 \u044d\u0442\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432.\u0421\u0435\u0433\u043e\u0434\u043d\u044f\u00a0\u0436\u0435 \u044f \u0445\u043e\u0447\u0443 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043d\u0430\u00a0PKCS#11, \u0442\u0430\u043a \u043a\u0430\u043a\u00a0\u0438\u043c\u0435\u043d\u043d\u043e \u0441\u00a0\u043d\u0438\u043c 90% \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 (\u043a\u043e\u043c\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e) \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442. \u0412\u00a0\u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043e\u0440\u0438\u0438 \u0438\u0437\u00a0\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u0432 \u0438 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043e\u0434\u0430. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e\u00a0\u2014 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f\u00a0\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430 \u0438\u0437\u00a0\u043d\u0435\u0433\u043e \u0432\u00a0\u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u044b \u0442\u0443\u0442, \u0432\u00a0\u0441\u0442\u0430\u0442\u044c\u0435.\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u00a0\u044d\u0442\u0438\u043a\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439\u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0431\u044b\u043b\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u00a0\u0441\u043e\u0437\u0438\u0434\u0430\u043d\u0438\u0435 \u0438 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u00ab\u0434\u0432\u0443\u0445 \u043c\u0438\u0440\u043e\u0432\u00bb, \u0442\u043e \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442 \u0434\u043b\u044f\u00a0\u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0447\u0442\u043e\u00a0\u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u043e\u0431\u043e\u044e\u0434\u043e\u043e\u0441\u0442\u0440\u044b\u043c \u043c\u0435\u0447\u043e\u043c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043f\u0438\u0448\u0443 \u0441\u0440\u0430\u0437\u0443: \u044f, \u043a\u0430\u043a\u00a0\u0430\u0432\u0442\u043e\u0440, \u043d\u0435\u00a0\u043d\u0435\u0441\u0443 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\u00a0\u0441\u043e\u0445\u0440\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u0432\u0430\u0448\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439, \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435\u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0432\u0441\u0435, \u0447\u0442\u043e\u00a0\u0432\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0435 \u043d\u0430\u00a0\u0441\u0432\u043e\u0438\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445\u00a0\u2014 \u0432\u044b \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043d\u0430\u00a0\u0441\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0445 \u0438 \u0440\u0438\u0441\u043a, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0441\u0435 \u0447\u0442\u043e\u00a0\u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u0433\u0434\u0435 \u0446\u0435\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0438\u00a0\u2014 \u043a\u043e\u043c\u043f\u0440\u043e\u043c\u0435\u0442\u0430\u0446\u0438\u044f \u0438\u043b\u0438\u00a0\u0443\u0442\u0435\u0440\u044f \u043a\u043b\u044e\u0447\u0435\u0439.\u0415\u0441\u043b\u0438 \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430 \u0432\u044b \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445, \u043d\u0435\u00a0\u0431\u0435\u0433\u0438\u0442\u0435 \u0441\u043b\u043e\u043c\u044f \u0433\u043e\u043b\u043e\u0432\u0443 \u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0431\u00a0\u044d\u0442\u043e\u043c \u0432\u00a0\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u0441\u044e\u0434\u0430, \u043b\u0443\u0447\u0448\u0435 \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0432\u0435\u043d\u0434\u043e\u0440\u0443 \u0434\u043b\u044f\u00a0\u043d\u0430\u0447\u0430\u043b\u0430.\u0418 \u0434\u0430, \u044f \u0441\u043c\u043e\u0433 \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u043a\u043b\u044e\u0447 \u0438\u0437\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430 \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0432\u043e\u0435\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430! \u041d\u043e\u00a0\u044d\u0442\u043e \u0431\u044b\u043b \u043a\u043b\u044e\u0447, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0441\u0430\u043c \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0432\u00a0\u0442\u043e\u043a\u0435\u043d, \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043e\u0441\u043b\u0430\u0431\u0438\u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0435\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f.\u0422\u0435\u043e\u0440\u0438\u044f \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u044b\u041f\u043e\u0434\u00a0pkcs11, \u0432\u00a0\u043f\u043e\u0432\u0441\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u043c \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0438, \u043e\u0431\u044b\u0447\u043d\u043e \u0438\u043c\u0435\u044e\u0442 \u0432\u00a0\u0432\u0438\u0434\u0443 \u043f\u0440\u043e\u0441\u0442\u0443\u044e.dll\u2011 \u0438\u043b\u0438.so\u2011\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443, \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043f\u043e\u0434\u00a0\u043d\u0443\u0436\u043d\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u0438 \u041e\u0421, \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u043e\u043a\u0435\u043d\u0430\u043c\u0438 \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442 \u0438\u0437, \u043a\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0443, OpenSC.\u041d\u0430\u00a0\u0434\u0435\u043b\u0435 \u0432\u0441\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435, pksc \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u00abPublic Key Cryptography Standards\u00bb, \u0442\u043e \u0435\u0441\u0442\u044c \u044d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u0432 \u0434\u043b\u044f\u00a0\u0440\u0430\u0431\u043e\u0442\u044b \u0441\u00a0\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0438\u043c\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u043c\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432\u0441\u0435, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442\u00a0\u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0439 \u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432, \u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044f \u0438\u0445 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c, \u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c\u0438 \u043d\u0430\u0434 \u043a\u043b\u044e\u0447\u0430\u043c\u0438. PKCS#11, \u043f\u043e\u043c\u0438\u043c\u043e \u043d\u043e\u043c\u0435\u0440\u0430, \u0438\u043c\u0435\u0435\u0442 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435: \u00abCryptographic Token Interface (Cryptoki)\u00bb. \u0427\u0442\u043e\u00a0\u043d\u0430\u0441 \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442, \u0442\u0430\u043a \u044d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0434\u043b\u044f\u00a0\u0440\u0430\u0431\u043e\u0442\u044b \u0441\u00a0\u0442\u043e\u043a\u0435\u043d\u043e\u043c, \u0438 \u043d\u0430\u0431\u043e\u0440\u044b \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u0438 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432. \u041d\u043e\u00a0\u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 \u0432\u00a0\u0442\u0435\u043e\u0440\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0433\u043e, \u0432\u0441\u0435 \u043f\u0440\u043e\u044f\u0441\u043d\u0438\u0442\u0441\u044f \u0432\u00a0\u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u0440\u0438\u043a\u043e\u0441\u043d\u0435\u043c\u0441\u044f \u043a\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0436\u0435\u043b\u0435\u0437\u0443 \u0438 \u0441\u0430\u043c\u0438 \u043f\u043e\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u043c.\u041e\u043a\u043e\u043d\u0447\u0438\u0442\u044c \u043f\u043e\u0433\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0432\u00a0\u0442\u0435\u043e\u0440\u0438\u044e \u0445\u043e\u0447\u0443 \u043b\u0438\u0448\u044c \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0445\u0435\u043c\u043e\u0439. \u0423\u00a0\u0442\u043e\u043a\u0435\u043d\u0430 \u0435\u0441\u0442\u044c:\u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 (\u043d\u0430\u0437\u043e\u0432\u0435\u043c \u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u043d\u043e \u0442\u0430\u043a)\u00a0\u2014 \u044d\u0442\u043e \u0438\u043c\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0438 \u043c\u0435\u0442\u043a\u0430 (label), \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0434\u043b\u044f\u00a0\u043d\u0430\u0441 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u00a0\u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u0442\u0430\u043a \u043a\u0430\u043a\u00a0\u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u00a0\u043d\u0438\u043c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a\u00a0\u0442\u043e\u043a\u0435\u043d\u0443 \u0432\u00a0\u043a\u043e\u0434\u0435;\u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b\u00a0\u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u00a0\u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 RSA, ECC, AES, key wrapping (AES\/RSA); \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u044f\u0441\u044c \u043d\u0430\u00a0\u044d\u0442\u0438\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430\u0445, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u0438\u0437\u00a0\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430;\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u00a0\u2014 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043a\u0430\u043a\u00a0\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u043e\u043a\u0435\u043d\u0430, \u0442\u0430\u043a \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u0432\u00a0\u0442\u043e\u043a\u0435\u043d, \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u00a0\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u043c \u043a\u043b\u044e\u0447\u0435\u0439, \u0430\u00a0\u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432, \u0442\u0430\u043a\u00a0\u0436\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0432\u00a0\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0435.\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434 \u0438 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438\u041a\u0430\u043a\u00a0\u0438 \u0432\u00a0\u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u0432\u00a0\u044d\u0442\u043e\u0439 \u044f \u0442\u043e\u0436\u0435 \u0445\u043e\u0447\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0443 dotnet, \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437\u00a0\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430, \u043a\u00a0\u0442\u043e\u043c\u0443\u00a0\u0436\u0435 \u044f \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438\u0437\u00a0\u0441\u0432\u043e\u0438\u0445 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u0430\u00a0\u043e\u043d\u0438 \u0443\u0436\u0435 \u0431\u044b\u043b\u0438 \u043d\u0430\u00a0\u0434\u043e\u0442\u043d\u0435\u0442\u0435.\u0412\u00a0\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u044f \u0445\u043e\u0447\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0443\u044e\u0441\u044f \u043d\u0435\u00a0\u0441\u0442\u043e\u043b\u044c \u0434\u0430\u0432\u043d\u043e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044e file\u2011based apps. \u041e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043c\u043d\u0435 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u044c\u0441\u044f \u043a\u00a0\u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043d\u0433\u0443 \u0431\u0435\u0437\u00a0\u0434\u043e\u043b\u0433\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f, \u0441\u0440\u043e\u0434\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u00a0\u043a\u0430\u043a\u0438\u043c\u2011\u043d\u0438\u0431\u0443\u0434\u044c Python.\u041e\u0434\u043d\u0430\u043a\u043e \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e\u00a0Visual Studio \u0438\u0437\u00a0\u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u043d\u0435\u00a0\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u00a0\u043e\u0434\u043d\u043e\u0444\u0430\u0439\u043b\u043e\u0432\u044b\u043c\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438 (\u0438\u0440\u043e\u043d\u0438\u0447\u043d\u043e, \u0434\u0430), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u043b\u0438 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u0445\u043e\u0447\u0435\u0442 \u0441\u0430\u043c \u0447\u0442\u043e\u2011\u043d\u0438\u0431\u0443\u0434\u044c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u00a0\u0441\u043a\u0440\u0438\u043f\u0442\u0435, \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c VS Code + C# Dev Kit (\u043d\u043e \u0438 \u0442\u0443\u0442 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441\u00a0\u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c) \u0438\u043b\u0438\u00a0\u043f\u0440\u043e\u0441\u0442\u043e Project Rider. \u0422\u0430\u043a\u0436\u0435, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u044c dll\/so \u0444\u0430\u0439\u043b \u0434\u043b\u044f\u00a0\u0441\u0432\u043e\u0435\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430, \u0438 \u0441\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e\u0435\u00a0\u2014 \u044d\u0442\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430, \u0434\u043b\u044f\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u043d \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d. \u041e\u0447\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043e \u0432\u00a0\u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e x86-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f\u00a0\u0442\u043e\u043a\u0435\u043d\u0430 (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0439 \u0442\u043e\u043a\u0435\u043d), \u043d\u043e, \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, x64-\u0432\u0435\u0440\u0441\u0438\u0438 \u0447\u0430\u0441\u0442\u043e \u043b\u0435\u0436\u0430\u0442 \u0432 C:\\Windows\\System32\u00a0\u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u043e\u0442\u00a0\u0432\u0435\u043d\u0434\u043e\u0440\u0430.\u0418 \u0441\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e\u0435: \u0435\u0441\u043b\u0438 \u0442\u044b \u043d\u0435\u00a0\u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0448\u044c \u0447\u0442\u043e\u00a0\u0434\u0435\u043b\u0430\u0435\u0448\u044c, \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0447\u0435\u0448\u044c \u043f\u043e\u0442\u044b\u043a\u0430\u0442\u044c \u0442\u0443\u0442 \u0438 \u0442\u0430\u043c, \u043d\u0435\u00a0\u0434\u0435\u043b\u0430\u0439 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u00a0\u0431\u043e\u0435\u0432\u043e\u043c \u0442\u043e\u043a\u0435\u043d\u0435, \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c\u0438 \u0438 \u043a\u043b\u044e\u0447\u0430\u043c\u0438! \u041a\u0430\u043a\u00a0\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0443\u0447\u0438\u0448\u044c\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043c\u043e\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c, \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438 \u043a\u00a0\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u043d\u0430\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0442\u043e\u043a\u0435\u043d\u0435.\u0412\u00a0\u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 SoftHSM2 (\u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 windows \u0435\u0441\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a). \u042d\u0442\u043e \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440 pkcs11-\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430, \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a\u00a0\u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0435\u0439 \u0438\u0437\u00a0\u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432.\u0412\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u00a0pkcs11, \u043f\u043e\u043c\u0438\u043c\u043e \u043c\u043e\u0435\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0431\u0443\u0434\u0443\u0442 \u0435\u0449\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e OpenSC, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u0442\u043e\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c.\u0421\u043e \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u044f \u0431\u0443\u0434\u0443 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u0432\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 windows, \u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430 PowerShell. \u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0448\u044c \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u043d\u0430 linux, \u043c\u043e\u0436\u0435\u0448\u044c \u0437\u0430\u043a\u0438\u043d\u0443\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043e\u0442\u0441\u044e\u0434\u0430 \u0432\u00a0\u0418\u0418, \u043e\u043d \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u0442 \u0432\u0441\u0451 \u043d\u0430 bash.\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c SoftHSM2\u041c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0448\u0430\u0433, \u0435\u0441\u043b\u0438 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0448\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f\u00a0\u0441\u0432\u043e\u0435\u0433\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430, \u0438\u043b\u0438\u00a0\u0443\u00a0\u0442\u0435\u0431\u044f \u0443\u0436\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0441\u0432\u043e\u0439 SoftHSM2\u00a0(\u0442\u043e\u0433\u0434\u0430 \u0442\u0435\u0431\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a\u043e\u043c\u0430\u043d\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0442\u0443\u0442 \u0434\u0430\u043b\u044c\u0448\u0435).\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u041d\u0430\u00a0windows, \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 SoftHSM2\u00a0\u0441\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u043e\u0433\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a\u0430, \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b (\u0435\u0441\u043b\u0438 \u0434\u043e\u00a0\u044d\u0442\u043e\u0433\u043e \u043e\u043d \u0431\u044b\u043b \u0443\u00a0\u0442\u0435\u0431\u044f \u0437\u0430\u043f\u0443\u0449\u0435\u043d).SOFTHSM2_CONF = D:\\SoftHSM2\\etc\\softhsm2.conf\u0414\u043e\u0431\u0430\u0432\u044c \u044d\u0442\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0432\u00a0\u0441\u0432\u043e\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u044b, \u0441\u00a0\u043f\u043e\u043f\u0440\u0430\u0432\u043a\u043e\u0439 \u043d\u0430\u00a0\u0441\u0432\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438.\u0414\u043b\u044f\u00a0\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u00a0PowerShell:# Paths to tools and SoftHSM2 library (adjust if installed elsewhere)$Pkcs11Tool = &#171;C:\\Program Files\\OpenSC Project\\OpenSC\\tools\\pkcs11-tool.exe&#187;$SoftHsmLib = &#171;D:\\SoftHSM2\\lib\\softhsm2-x64.dll&#187;# Token parameters$Slot    = &#171;0&#187;$Label   = &#171;mytoken&#187;$SoPin   = &#171;0000&#187;   # Security Officer PIN (required to initialize the token)$UserPin = &#171;0000&#187;   # Normal User PIN# 1. Initialize the token on the uninitialized slot (sets the label and SO PIN)&amp; $Pkcs11Tool &#8212;module $SoftHsmLib `    &#8212;slot $Slot `    &#8212;init-token `    &#8212;label $Label `    &#8212;so-pin $SoPinif ($LASTEXITCODE -ne 0) {    Write-Error &#171;Failed to initialize token.&#187;    exit $LASTEXITCODE}# 2. Initialize the User PIN on the newly labeled token# (SoftHSM reassigns the slot ID upon initialization, so we target it by &#8212;token label)&amp; $Pkcs11Tool &#8212;module $SoftHsmLib `    &#8212;token $Label `    &#8212;login `    &#8212;so-pin $SoPin `    &#8212;init-pin `    &#8212;pin $UserPin# 3. Verify the initialized token&amp; $Pkcs11Tool &#8212;module $SoftHsmLib &#8212;list-slots\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0443\u00a0\u0442\u0435\u0431\u044f \u0432\u044b\u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0447\u0442\u043e\u2011\u0442\u043e \u0432\u0440\u043e\u0434\u0435:\u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e\u00a0\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0443\u0441\u043f\u0435\u0448\u043d\u043e.\u041f\u0440\u043e\u0439\u0434\u0435\u043c\u0441\u044f \u043f\u043e\u00a0\u043a\u043e\u0434\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0422\u0435\u043f\u0435\u0440\u044c\u00a0\u0436\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043f\u0440\u043e\u00a0\u0442\u043e, \u043a\u0430\u043a\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u0434 \u0434\u043b\u044f\u00a0\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c\u043e\u0441\u0442\u0438. \u041a\u043e\u0433\u0434\u0430 \u0442\u0435\u0431\u0435 \u0432\u044b\u0434\u0430\u044e\u0442 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0434\u043b\u044f\u00a0\u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0438, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432\u00a0\u044d\u0442\u043e\u043c \u0434\u0432\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b: \u0442\u044b \u0438 \u0438\u0437\u0434\u0430\u0442\u0435\u043b\u044c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430.\u0421\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0438\u0437\u0434\u0430\u0442\u0435\u043b\u044f \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430:\u0423\u00a0\u0438\u0437\u0434\u0430\u0442\u0435\u043b\u0435\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439 \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u00a0\u0442\u043e\u043a\u0435\u043d\u0430\u043c\u0438 (\u0435\u0441\u043b\u0438 \u043c\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e\u00a0\u0442\u0435\u0431\u0435 \u0432\u044b\u0434\u0430\u044e\u0442 \u0442\u043e\u043a\u0435\u043d \u0441\u00a0\u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u0443\u0436\u0435 \u043d\u0430\u00a0\u043c\u0435\u0441\u0442\u0435). \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0442\u044b \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0448\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u0443\u044e \u043f\u0430\u0440\u0443 \u0434\u043e\u043c\u0430, \u0430\u00a0\u0432\u00a0\u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0438\u0439 \u0446\u0435\u043d\u0442\u0440 \u0438\u0434\u0435\u0448\u044c \u0441\u00a0\u0446\u0435\u043b\u044c\u044e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0432\u00a0\u0431\u0443\u043c\u0430\u0436\u043a\u0430\u0445 \u043e\u00a0\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430, \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0442\u044b \u044d\u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u0435\u043b\u0430\u0435\u0448\u044c \u0447\u0435\u0440\u0435\u0437 \u041f\u041e\u00a0\u0441\u0430\u043c\u043e\u0433\u043e \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u044f\u044e\u0449\u0435\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430. \u0418 \u0442\u0443\u0442 \u0432\u0430\u0436\u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e, \u043a\u0430\u043a\u00a0\u043e\u043d\u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0443\u00a0\u0441\u0435\u0431\u044f, \u0432\u00a0\u043c\u043e\u043c\u0435\u043d\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u00a0\u0442\u043e\u043a\u0435\u043d\u0435\/\u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u043a\u043b\u044e\u0447\u0435\u0439 \u043d\u0430\u00a0\u0442\u043e\u043a\u0435\u043d.\u041f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u043a\u043e\u0434 \u043a\u0430\u043a\u00a0\u0434\u043b\u044f\u00a0\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f\u00a0\u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430, \u043c\u0430\u043b\u043e \u0447\u0435\u043c \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f, \u043d\u043e\u00a0\u0432\u00a0\u043d\u0435\u043c \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u0430 \u0432\u0430\u0436\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u0447\u0435\u043a:\/\/ Prepare attribute template of new public keyList&lt;IObjectAttribute&gt; publicKeyAttributes =[    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_TOKEN, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_PRIVATE, false),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_LABEL, label),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_ID, ckaId),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_ENCRYPT, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_VERIFY, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_VERIFY_RECOVER, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_WRAP, false),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_MODULUS_BITS, (nuint)AppState.ParsedArgs.RsaKeySize),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_PUBLIC_EXPONENT, [0x01, 0x00, 0x01]),];\/\/ Prepare attribute template of new private keyList&lt;IObjectAttribute&gt; privateKeyAttributes =[    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_TOKEN, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_PRIVATE, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_LABEL, label),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_ID, ckaId),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_SENSITIVE, sensitive),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_EXTRACTABLE, extractable),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_DECRYPT, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_SIGN, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_SIGN_RECOVER, true),    session.Factories.ObjectAttributeFactory.Create(CKA.CKA_UNWRAP, false),];\u0412\u00a0\u044d\u0442\u043e\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u0435 \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u043f\u0430\u0440\u0430 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432:session.Factories.ObjectAttributeFactory.Create(CKA.CKA_SENSITIVE, sensitive),session.Factories.ObjectAttributeFactory.Create(CKA.CKA_EXTRACTABLE, extractable),\u042d\u0442\u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u043a\u043b\u044e\u0447\u0430. CKA_EXTRACTABLE \u0438\u043c\u0435\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0435\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435, \u0438 \u0435\u0441\u043b\u0438 \u043e\u043d \u0440\u0430\u0432\u0435\u043d true, \u0442\u043e \u043a\u043b\u044e\u0447 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0438\u0437\u00a0\u0442\u043e\u043a\u0435\u043d\u0430. \u0421\u00a0\u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0435\u0441\u043b\u0438 \u043e\u043d false, \u0442\u043e \u043a\u043b\u044e\u0447 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u00a0\u043f\u043e\u043a\u0438\u043d\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e.\u0410\u0442\u0440\u0438\u0431\u0443\u0442 CKA_SENSITIVE \u0436\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u043c\u043e\u0436\u043d\u043e\u00a0\u043b\u0438&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-504251","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/504251","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=504251"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/504251\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=504251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=504251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=504251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}