{"id":735,"date":"2018-02-05T16:53:38","date_gmt":"2018-02-05T12:53:38","guid":{"rendered":"http:\/\/blog.5flor.ru\/?p=735"},"modified":"2018-02-05T16:53:38","modified_gmt":"2018-02-05T12:53:38","slug":"%d0%94%d0%be%d0%b1%d0%b0%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d0%ba%d0%be%d1%80%d0%bd%d0%b5%d0%b2%d0%be%d0%b3%d0%be-%d1%81%d0%b5%d1%80%d1%82%d0%b8%d1%84%d0%b8%d0%ba%d0%b0%d1%82%d0%b0-%d0%b2-%d1%81","status":"publish","type":"post","link":"https:\/\/blog.5flor.ru\/?p=735","title":{"rendered":"\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443"},"content":{"rendered":"<div class=\"post-text\">\n<h1>Installing a root\/CA Certificate<\/h1>\n<p>Given a CA certificate file <code>foo.crt<\/code>, follow these steps to install it on Ubuntu:<\/p>\n<ol>\n<li>Create a directory for extra CA certificates in <code>\/usr\/share\/ca-certificates<\/code>:\n<pre><code>sudo mkdir \/usr\/share\/ca-certificates\/extra\r\n<\/code><\/pre>\n<\/li>\n<li>Copy the CA <code>.crt<\/code> file to this directory:\n<pre><code>sudo cp foo.crt \/usr\/share\/ca-certificates\/extra\/foo.crt\r\n<\/code><\/pre>\n<\/li>\n<li>Let Ubuntu add the <code>.crt<\/code> file&#8217;s path relative to <code>\/usr\/share\/ca-certificates<\/code> to <code>\/etc\/ca-certificates.conf<\/code>:\n<pre><code>sudo dpkg-reconfigure ca-certificates\r\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>In case of a <code>.pem<\/code> file on Ubuntu, it must first be converted to a <code>.crt<\/code> file:<\/p>\n<pre><code>openssl x509 -in foo.pem -inform PEM -out foo.crt\r\n<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Installing a root\/CA Certificate Given a CA certificate file foo.crt, follow these steps to install it on Ubuntu: Create a directory for extra CA certificates in \/usr\/share\/ca-certificates: sudo mkdir \/usr\/share\/ca-certificates\/extra Copy the CA .crt file to this directory: sudo cp &hellip; <a href=\"https:\/\/blog.5flor.ru\/?p=735\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-735","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/735"}],"collection":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=735"}],"version-history":[{"count":0,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/735\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}