{"id":39,"date":"2015-01-11T10:17:29","date_gmt":"2015-01-11T09:17:29","guid":{"rendered":"http:\/\/xv6.de\/?page_id=39"},"modified":"2019-10-17T09:37:37","modified_gmt":"2019-10-17T08:37:37","slug":"setup","status":"publish","type":"page","link":"https:\/\/xv6.de\/?page_id=39","title":{"rendered":"Setup"},"content":{"rendered":"<p>The PKI can reside anywhere in the file system. As location was \/srv\/pki chosen. Everything that is required is created as file or sub directory of this chosen directory.<\/p>\n<ol>\n<li>Create the home directory <em>\/srv\/pki<\/em> and change into this directory<br \/>\n<code>$ mkdir -p \/srv\/pki<br \/>\n$ cd \/srv\/pki<br \/>\n<\/code><\/li>\n<li>Each certification authority gets its own sub directory. Initial is only the root certification authority created while later intermediate certification authorities are created.<code><br \/>\n$ mkdir ca-root<\/code><\/li>\n<li>Create a database file <em>index.txt<\/em> that keeps track of each created certificates of the certification authority<br \/>\n<code>$ touch ca-root\/index.txt<\/code><\/li>\n<li>Create a serial number file and initiate it with the starting serial number <em>00<\/em><code><br \/>\n$touch ca-root\/serial<br \/>\n$ echo 00 &gt;&gt; ca-root\/serial<\/code><\/li>\n<li>So far are the following files and directories available<code><br \/>\n.:<br \/>\ntotal 0<br \/>\n0 drwxr-xr-x 2 root root 3896 Jan 16 19:45 ca-root<\/p>\n<p><\/code><code>.\/ca-root:<br \/>\ntotal 0<br \/>\n0 -rw-r--r-- 1 root root 0 Jan 16 19:45 index.txt<br \/>\n0 -rw-r--r-- 1 root root 3 Jan 16 19:45 serial<br \/>\n<\/code><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>The PKI can reside anywhere in the file system. As location was \/srv\/pki chosen. Everything that is required is created as file or sub directory of this chosen directory. Create the home directory \/srv\/pki and change into this directory $ mkdir -p \/srv\/pki $ cd \/srv\/pki Each certification authority gets its own sub directory. Initial &hellip; <a href=\"https:\/\/xv6.de\/?page_id=39\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Setup<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":19,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-39","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/pages\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xv6.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=39"}],"version-history":[{"count":7,"href":"https:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/pages\/39\/revisions"}],"predecessor-version":[{"id":145,"href":"https:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/pages\/39\/revisions\/145"}],"up":[{"embeddable":true,"href":"https:\/\/xv6.de\/index.php?rest_route=\/wp\/v2\/pages\/19"}],"wp:attachment":[{"href":"https:\/\/xv6.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}