0004.html 4.6 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="How To Create Self-Signed Certificates,PKI,Public Key Infrastructure,XCA,Self-Signed PKI,HTTPS,SSL,Web Server,OpenVPN,Certificates,Encryption,Certificate Authority,Self-Signed,SSL Certificates,Windows,Self-Signed SSL,X Certificate And Key Management,X Certificate Key Manager,Self-Signed Certificate,Self-Signed HTTPS,Home Lab,Public Key User Interface,Graphical Certificate Management,How To,Tutorial,i12bretro">
  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. <meta name="revised" content="09/03/2022 09:37:50 AM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Creating a Self-Signed Public Key Infrastructure (PKI)</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <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>
  26. <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>
  27. <h2>Getting Started</h2>
  28. <ol>
  29. <li>Download X Certificate Key Manager<a href="https://hohnstaedt.de/xca/index.php/download" target="_blank"> Download</a></li>
  30. <li>Extract X Certificate Key Manager</li>
  31. <li>Launch xca.exe</li>
  32. <li>Select File &gt; Create Database</li>
  33. <li>Name your PKI database and click save</li>
  34. <li>Enter a password for you database</li>
  35. <li>Re-type to confirm and click OK</li>
  36. </ol>
  37. <h2>Creating the Root Certificate Authority</h2>
  38. <ol>
  39. <li>Navigate to the Certificates tab</li>
  40. <li>Click the New Certificate button</li>
  41. <li>Click the Subject tab</li>
  42. <li>Complete the Distinguished Name section
  43. <p>internalName: i12bretro Root CA<br />
  44. countryName: US<br />
  45. stateOrProvinceName: Virginia<br />
  46. localityName: Northern<br />
  47. organizationName: i12bretro<br />
  48. organizationUnitName: i12bretro Certificate Authority<br />
  49. commonName: i12bretro Root CA</p>
  50. </li>
  51. <li>Click the Generate a New Key button</li>
  52. <li>Enter a name and set the key size to at least 2048</li>
  53. <li>Click Create</li>
  54. <li>Click on the Extensions tab</li>
  55. <li>Select Certificate Authority from the type list</li>
  56. <li>Update the validity dates to fit your needs</li>
  57. <li>Click the Key Usage tab</li>
  58. <li>Under Key Usage select Digital Signature, Key Encipherment and Certificate Sign</li>
  59. <li>Click OK to create the certificate</li>
  60. </ol>
  61. <h2>Creating the Intermediate Certificate Authority</h2>
  62. <ol>
  63. <li>From the Certificates tab, right click on your Root CA certificate</li>
  64. <li>Select New</li>
  65. <li>On the Source tab, make sure Use this Certificate for signing is selected</li>
  66. <li>Verify your Root CA certificate is selected from the drop down</li>
  67. <li>Click the Subject tab</li>
  68. <li>Complete the Distinguished Name section
  69. <p>internalName: i12bretro Intermediate CA<br />
  70. countryName: US<br />
  71. stateOrProvinceName: Virginia<br />
  72. localityName: Northern<br />
  73. organizationName: i12bretro<br />
  74. organizationUnitName: i12bretro Certificate Authority<br />
  75. commonName: i12bretro Intermediate CA</p>
  76. </li>
  77. <li>Click the Generate a New Key button</li>
  78. <li>Enter a name and set the key size to at least 2048</li>
  79. <li>Click Create</li>
  80. <li>Click on the Extensions tab</li>
  81. <li>Select Certificate Authority from the type list</li>
  82. <li>Update the validity dates to fit your needs</li>
  83. <li>Click the Key Usage tab</li>
  84. <li>Under Key Usage select Digital Signature, Key Encipherment and Certificate Sign</li>
  85. <li>Click OK to create the certificate</li>
  86. <li>From this point forward, use the intermediate certificate to create end entity certificates</li>
  87. </ol> </div>
  88. </div>
  89. </body>
  90. </html>