0004.html 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Creating a Self-Signed Public Key Infrastructure (PKI)</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="PKI,Public Key Infrastructure,XCA,SSL,Web Server,OpenVPN,Certificates,Certificate Authority,Self-Signed,Tutorial">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Creating a Self-Signed Public Key Infrastructure (PKI)">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>Creating a Self-Signed Public Key Infrastructure (PKI)</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <p>This is part one of a series of creating your own self-signed PKI and some ways to utilize the PKI to setup SSL for your web server or create your own OpenVPN server.</p>
  25. <p>Disclaimer: I am not a security expert. This is just the easiest way I have found to create and utilize SSL for my homelab services.</p>
  26. <h2>Getting Started</h2>
  27. <ol>
  28. <li>Download X Certificate Key Manager<a href="https://hohnstaedt.de/xca/index.php/download" target="_blank"> Download</a></li>
  29. <li>Extract X Certificate Key Manager</li>
  30. <li>Launch xca.exe</li>
  31. <li>Select File &gt; Create Database</li>
  32. <li>Name your PKI database and click save</li>
  33. <li>Enter a password for you database</li>
  34. <li>Re-type to confirm and click OK</li>
  35. </ol>
  36. <h2>Creating the Root Certificate Authority</h2>
  37. <ol>
  38. <li>Navigate to the Certificates tab</li>
  39. <li>Click the New Certificate button</li>
  40. <li>Click the Subject tab</li>
  41. <li>Complete the Distinguished Name section
  42. <p>internalName: i12bretro Root CA<br />
  43. countryName: US<br />
  44. stateOrProvinceName: Virginia<br />
  45. localityName: Northern<br />
  46. organizationName: i12bretro<br />
  47. organizationUnitName: i12bretro Certificate Authority<br />
  48. commonName: i12bretro Root CA</p>
  49. </li>
  50. <li>Click the Generate a New Key button</li>
  51. <li>Enter a name and set the key size to at least 2048</li>
  52. <li>Click Create</li>
  53. <li>Click on the Extensions tab</li>
  54. <li>Select Certificate Authority from the type list</li>
  55. <li>Update the validity dates to fit your needs</li>
  56. <li>Click the Key Usage tab</li>
  57. <li>Under Key Usage select Digital Signature, Key Agreement and Certificate Sign</li>
  58. <li>Click OK to create the certificate</li>
  59. </ol>
  60. <h2>Creating the Intermediate Certificate Authority</h2>
  61. <ol>
  62. <li>From the Certificates tab, right click on your Root CA certificate</li>
  63. <li>Select New</li>
  64. <li>On the Source tab, make sure Use this Certificate for signing is selected</li>
  65. <li>Verify your Root CA certificate is selected from the drop down</li>
  66. <li>Click the Subject tab</li>
  67. <li>Complete the Distinguished Name section
  68. <p>internalName: i12bretro Intermediate CA<br />
  69. countryName: US<br />
  70. stateOrProvinceName: Virginia<br />
  71. localityName: Northern<br />
  72. organizationName: i12bretro<br />
  73. organizationUnitName: i12bretro Certificate Authority<br />
  74. commonName: i12bretro Intermediate CA</p>
  75. </li>
  76. <li>Click the Generate a New Key button</li>
  77. <li>Enter a name and set the key size to at least 2048</li>
  78. <li>Click Create</li>
  79. <li>Click on the Extensions tab</li>
  80. <li>Select Certificate Authority from the type list</li>
  81. <li>Update the validity dates to fit your needs</li>
  82. <li>Click the Key Usage tab</li>
  83. <li>Under Key Usage select Digital Signature, Key Agreement and Certificate Sign</li>
  84. <li>Click OK to create the certificate</li>
  85. <li>From this point forward, use the intermediate certificate to create end entity certificates</li>
  86. </ol>
  87. </div>
  88. </div>
  89. </body>
  90. </html>