{"id":282356,"date":"2016-12-12T13:40:04","date_gmt":"2016-12-12T10:40:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=282356"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=282356","title":{"rendered":"\u042d\u043a\u043f\u043e\u0440\u0442 \u043a\u043b\u044e\u0447\u0430 SignalCom \u0432 OpenSSL"},"content":{"rendered":"<p><em>\u0423 \u0432\u0430\u0441 \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u0434\u0430\u0447\u0430 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e \u0413\u041e\u0421\u0422\u0443 \u0438 &quot;\u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u041a\u0420\u0418\u041f\u0422\u041e-\u041a\u041e\u041c&quot;, \u0430 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c OpenSSL \u0441 gost? \u041d\u0430 \u0444\u043e\u0440\u0443\u043c\u0435 &quot;\u0421\u0438\u0433\u043d\u0430\u043b-\u041a\u041e\u041c&quot; \u0432\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043a\u0443\u0447\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u0447\u0442\u043e &quot;\u043a\u043b\u044e\u0447\u0438 \u0438\u0437 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u041a\u0420\u0418\u041f\u0422\u041e-\u041a\u041e\u041c \u043d\u0435\u043b\u044c\u0437\u044f \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442 OpenSSL-\u0433\u043e\u0441\u0442-\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u0445&quot;? \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430!<\/em><\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p><strong>tl;dr:<\/strong> <a href=\"http:\/\/gostcrypto.com\/demo-sc-keys.html\">http:\/\/gostcrypto.com\/demo-sc-keys.html<\/a><\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0441\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0436\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u043a\u043b\u044e\u0447\u0438 \u0438\u0437 \u043f\u0440\u043e\u043f\u0440\u0438\u0435\u0442\u0430\u0440\u043d\u043e\u0433\u043e \u0432 \u043e\u0440\u0442\u043e\u0434\u043e\u043a\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442?<\/p>\n<p>  <\/p>\n<h2>\u042f \u043d\u0435 \u043f\u0430\u0440\u0430\u043d\u043e\u0438\u043a<\/h2>\n<p>  <\/p>\n<p>\u0418\u0434\u0451\u0442\u0435 \u043d\u0430 <a href=\"http:\/\/gostcrypto.com\/demo-sc-keys.html\">http:\/\/gostcrypto.com\/demo-sc-keys.html<\/a> \u0438 \u0443\u043a\u0430\u0437\u0430\u0432 \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0442\u0438\u043f\u0430 &quot;mk.db3&quot;, &quot;masks.db3&quot;, &quot;kek.opq&quot;, &quot;rand.opq&quot; \u0438 \u0444\u0430\u0439\u043b \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u043f\u043e \u0442\u0438\u043f\u0443 &quot;Keys\\00000001.key&quot;, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 &quot;Export PrivateKey&quot;.<\/p>\n<p>  <\/p>\n<p>\u0412 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 gostcrypto.com \u043a\u043b\u044e\u0447 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c PEM-\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u043c, \u0442.\u043a. \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u0438\u043d\u0430 \u0431\u043e\u043b\u0435\u0435 64 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432:<\/p>\n<p>  <\/p>\n<pre><code>-----BEGIN PRIVATE KEY----- MEYCAQAwHQYGKoUDAgITMBMGByqFAwICIwEGCCqFAwcBAQICBCIEIG0GEmE3dhrHzm1KfFDpKBWEmMydwcmP0hNKvXXbEbLO -----END PRIVATE KEY-----<\/code><\/pre>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e PEM-\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e\u0441\u043b\u0435 64 \u0441\u0438\u043c\u0432\u043e\u043b\u0430:<\/p>\n<p>  <\/p>\n<pre><code>-----BEGIN PRIVATE KEY----- MEYCAQAwHQYGKoUDAgITMBMGByqFAwICIwEGCCqFAwcBAQICBCIEIG0GEmE3dhrH zm1KfFDpKBWEmMydwcmP0hNKvXXbEbLO -----END PRIVATE KEY-----<\/code><\/pre>\n<p>  <\/p>\n<h2>\u042f \u043f\u0430\u0440\u0430\u043d\u043e\u0438\u043a \u0438\u043b\u0438 \u0445\u043e\u0447\u0443 cli-\u0432\u0435\u0440\u0441\u0438\u044e<\/h2>\n<p>  <\/p>\n<p>\u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 gostcrypto \u043d\u0435 node-\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0438 \u0435\u0441\u0442\u044c \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0435\u0451 node-\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0432 \u043f\u0443\u043b-\u0440\u0435\u043a\u0432\u0435\u0441\u0442\u0435. \u0422\u0430\u043c \u0436\u0435 cli-\u0443\u0442\u0438\u043b\u0438\u0442\u0430 \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430 \u0432 PEM-compatible \u0444\u043e\u0440\u043c\u0430\u0442.<\/p>\n<p>  <\/p>\n<p>\u0421\u0442\u0430\u0432\u0438\u043c \u0435\u0451 \u0438 \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447:<\/p>\n<p>  <\/p>\n<pre><code>sudo npm install -g https:\/\/github.com\/garex\/nodejs-gost-crypto\/archive\/nodefy.tar.gz cd \/tmp wget https:\/\/www.contact-sys.com\/files\/redactor\/files\/TestContactKey.zip unzip TestContactKey.zip -d TestContactKey gost-export-signalcom-key --pse TestContactKey --key Keys\/00000001.key<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432 STDOUT:<\/p>\n<p>  <\/p>\n<pre><code>-----BEGIN PRIVATE KEY----- MEYCAQAwHQYGKoUDAgITMBMGByqFAwICIwEGCCqFAwcBAQICBCIEIG0GEmE3dhrH zm1KfFDpKBWEmMydwcmP0hNKvXXbEbLO -----END PRIVATE KEY-----<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u0432 STDERR:<\/p>\n<p>  <\/p>\n<pre><code>OK: Private SignalCom key successfully exported in STDOUT in &quot;PEM&quot; format.<\/code><\/pre>\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:\/\/habrahabr.ru\/post\/317406\/\"> https:\/\/habrahabr.ru\/post\/317406\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p><em>\u0423 \u0432\u0430\u0441 \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u0434\u0430\u0447\u0430 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e \u0413\u041e\u0421\u0422\u0443 \u0438 &quot;\u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u041a\u0420\u0418\u041f\u0422\u041e-\u041a\u041e\u041c&quot;, \u0430 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c OpenSSL \u0441 gost? \u041d\u0430 \u0444\u043e\u0440\u0443\u043c\u0435 &quot;\u0421\u0438\u0433\u043d\u0430\u043b-\u041a\u041e\u041c&quot; \u0432\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043a\u0443\u0447\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, \u0447\u0442\u043e &quot;\u043a\u043b\u044e\u0447\u0438 \u0438\u0437 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u041a\u0420\u0418\u041f\u0422\u041e-\u041a\u041e\u041c \u043d\u0435\u043b\u044c\u0437\u044f \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0430\u0442 OpenSSL-\u0433\u043e\u0441\u0442-\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u0445&quot;? \u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430!<\/em><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-282356","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/282356","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=282356"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/282356\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=282356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=282356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=282356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}