{"id":1175,"date":"2020-04-22T18:01:43","date_gmt":"2020-04-22T15:01:43","guid":{"rendered":"https:\/\/blog.5flor.ru\/?p=1175"},"modified":"2020-04-22T18:01:43","modified_gmt":"2020-04-22T15:01:43","slug":"%d0%b4%d0%be%d0%b1%d0%b0%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d1%81%d0%b5%d1%80%d1%82%d0%b8%d1%84%d0%b8%d0%ba%d0%b0%d1%82%d0%b0-ububtu","status":"publish","type":"post","link":"https:\/\/blog.5flor.ru\/?p=1175","title":{"rendered":"\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 UBUBTU"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">Installing a root\/CA Certificate<\/h1>\n\n\n\n<p>Given a CA certificate file&nbsp;<code>foo.crt<\/code>, follow these steps to install it on Ubuntu:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Create a directory for extra CA certificates in&nbsp;<code>\/usr\/share\/ca-certificates<\/code>:<code>sudo mkdir \/usr\/share\/ca-certificates\/extra\n<\/code><\/li><li>Copy the CA&nbsp;<code>.crt<\/code>&nbsp;file to this directory:<code>sudo cp foo.crt \/usr\/share\/ca-certificates\/extra\/foo.crt\n<\/code><\/li><li>Let Ubuntu add the&nbsp;<code>.crt<\/code>&nbsp;file&#8217;s path relative to&nbsp;<code>\/usr\/share\/ca-certificates<\/code>&nbsp;to&nbsp;<code>\/etc\/ca-certificates.conf<\/code>:<code>sudo dpkg-reconfigure ca-certificates\n<\/code>To do this non-interactively, run:<code>sudo update-ca-certificates\n<\/code><\/li><\/ol>\n\n\n\n<p>In case of a&nbsp;<code>.pem<\/code>&nbsp;file on Ubuntu, it must first be converted to a&nbsp;<code>.crt<\/code>&nbsp;file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl x509 -in foo.pem -inform PEM -out foo.crt<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Installing a root\/CA Certificate Given a CA certificate file&nbsp;foo.crt, follow these steps to install it on Ubuntu: Create a directory for extra CA certificates in&nbsp;\/usr\/share\/ca-certificates:sudo mkdir \/usr\/share\/ca-certificates\/extra Copy the CA&nbsp;.crt&nbsp;file to this directory:sudo cp foo.crt \/usr\/share\/ca-certificates\/extra\/foo.crt Let Ubuntu add the&nbsp;.crt&nbsp;file&#8217;s &hellip; <a href=\"https:\/\/blog.5flor.ru\/?p=1175\">\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":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,9],"tags":[],"class_list":["post-1175","post","type-post","status-publish","format-standard","hentry","category-1","category-9"],"_links":{"self":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/1175"}],"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=1175"}],"version-history":[{"count":1,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/1175\/revisions"}],"predecessor-version":[{"id":1176,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/1175\/revisions\/1176"}],"wp:attachment":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}