{"id":5720,"date":"2021-05-19T16:06:42","date_gmt":"2021-05-19T13:06:42","guid":{"rendered":"https:\/\/skeletor.org.ua\/?p=5720"},"modified":"2025-05-20T13:37:21","modified_gmt":"2025-05-20T10:37:21","slug":"%d0%94%d0%be%d0%b1%d0%b0%d0%b2%d0%bb%d1%8f%d0%b5%d0%bc-%d1%81%d0%b2%d0%be%d0%b9-%d1%81%d0%b0%d0%bc%d0%be%d0%bf%d0%be%d0%b4%d0%bf%d0%b8%d1%81%d0%bd%d1%8b%d0%b9-%d1%81%d0%b5%d1%80%d1%82%d0%b8%d1%84","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=5720","title":{"rendered":"\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0432\u043e\u0439 \u0441\u0430\u043c\u043e\u043f\u043e\u0434\u043f\u0438\u0441\u043d\u044b\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u0440\u043d\u0435\u0432\u044b\u0445"},"content":{"rendered":"\n<p>\u0418 \u0442\u0430\u043a, \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 <strong>PEM<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e:<br><strong> &#8211; Linux: \/usr\/share\/ca-certificates\/mozilla<br> &#8211; FreeBSD: \/usr\/share\/certs\/trusted<br> &#8211; OpenBSD: \/etc\/ssl\/cert.pem<br> &#8211; Oracle Solaris \/etc\/certs\/CA<\/strong><\/p>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u043c\u043b\u0438\u043d\u043a \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u0445\u0435\u0448\u0430 \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c\u0438. \u0422\u0443\u0442 \u0435\u0441\u0442\u044c 2 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/ChatSecure\/OpenSSL\/blob\/master\/tools\/c_rehash\" target=\"_blank\">c_rehash<\/a> (\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0432 \u043f\u0430\u043a\u0435\u0442\u0435 <strong>openssl-perl<\/strong>) \u0438\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0415\u0441\u043b\u0438 \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u043c\u0430\u0442\u044c \u0438 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430, \u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0414\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a:<\/p>\n\n\n<p><!--more--><\/p>\n<p>1) \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c\u0438<br \/><strong>&#8211; Linux\/BSD &#8211; \/etc\/ssl\/certs <\/strong><br \/><strong>&#8211; Oracle Solaris &#8211; \/etc\/openssl\/cert<\/strong><br \/>2) \u0434\u0435\u043b\u0430\u0435\u043c \u0441\u0438\u043c\u043b\u0438\u043d\u043a:<\/p>\n<pre>ln -s \"\/path\/to\/cert_name.pem\" \"$(openssl x509 -hash -noout -in \"cert_name.pem\")\".0<\/pre>\n<p>\u0410 \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e, \u0442\u043e \u0442\u0430\u043a:<\/p>\n<pre>for file in *.pem; do ln -s \"$file\" \"$(openssl x509 -hash -noout -in \"$file\")\".0; done<\/pre>\n<p>\u0418\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 <strong>c_rehash<\/strong>. <br \/>\u0412\u043e\u0442 \u0442\u0443\u0442 \u0441\u0442\u043e\u0438\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435. \u041a\u0430\u043a \u044f \u043d\u0438 \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0447\u0435\u0440\u0435\u0437 \u044d\u0442\u0443 \u0443\u0442\u0438\u043b\u0438\u0442\u0443, \u043e\u043d\u0430 \u043d\u0435 \u043c\u043e\u0433\u043b\u0430 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0438\u043c\u043b\u0438\u043d\u043a\u0438: \u043e\u043d\u0430 \u0434\u0435\u043b\u0430\u0435\u0442 \u0438\u0445 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u0442\u043e\u0439 \u043f\u0430\u043f\u043a\u0438, \u0433\u0434\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0441\u0430\u043c\u0438 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u0438\u043c\u043b\u0438\u043d\u043a \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u0432\u0438\u0434\u0430 <strong>hash -&gt; file<\/strong>, \u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c <strong>hash -&gt; ..\/..\/openssl\/CA\/file<\/strong>. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u044f \u0440\u0435\u0448\u0438\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 <strong>for\u00a0<\/strong><\/p>\n<p>\u0410 \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c curl-\u0437\u0430\u043f\u0440\u043e\u0441 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u043b\u044e\u0431\u044b\u043c \u0438\u0437 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432:<\/p>\n<pre>curl --cacert \/etc\/certs\/ca-certificates.crt URL\nCURL_CA_BUNDLE=\/etc\/certs\/ca-certificates.crt curl URL<\/pre>\n<p>\u0433\u0434\u0435 <strong>\/etc\/certs\/ca-certificates.crt<\/strong> &#8211; \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u0440\u043d\u0435\u0432\u044b\u0445 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432<\/p>","protected":false},"excerpt":{"rendered":"<p>\u0418 \u0442\u0430\u043a, \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 PEM, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e: &#8211; Linux: \/usr\/share\/ca-certificates\/mozilla &#8211; FreeBSD: \/usr\/share\/certs\/trusted &#8211; OpenBSD: \/etc\/ssl\/cert.pem &#8211; Oracle Solaris \/etc\/certs\/CA \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u043c\u043b\u0438\u043d\u043a \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u0445\u0435\u0448\u0430 \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c\u0438. \u0422\u0443\u0442 \u0435\u0441\u0442\u044c 2 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 c_rehash (\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0432 \u043f\u0430\u043a\u0435\u0442\u0435 openssl-perl) \u0438\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,10,25,24],"tags":[],"class_list":["post-5720","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-linux","category-others","category-openbsd","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5720"}],"version-history":[{"count":4,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5720\/revisions"}],"predecessor-version":[{"id":6591,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5720\/revisions\/6591"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}