0010.html 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Adding Self-Signed PKI to Windows Trusted Certificate Store via Group Policy</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 Add Self-signed Certificates To Windows,Windows Trust Self-Signed Certificates,How To Create Self-Signed Certificates,Windows Trusted Certificates,Public Key Infrastructure,PKI,XCA,SSL,Certificates,Certificate Authority,Self-Signed,Self-Signed Certificate,Self-Signed HTTPS,Self-Signed SSL,Windows Administration,HTTPS,X Certificate Key Manager,Self-Signed PKI,SSL Certificates,Microsoft Windows,Windows,Group Policy,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Adding Self-Signed PKI to Windows Trusted Certificate Store via Group Policy">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="10/24/2022 09:52:34 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>Adding Self-Signed PKI to Windows Trusted Certificate Store via Group Policy</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <p>This is part three 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>Prerequisites</h2>
  28. <ul>
  29. <li class="noCheckbox">A XCA PKI database <a href="https://youtu.be/ezzj3x207lQ" target="_blank">https://youtu.be/ezzj3x207lQ</a></li>
  30. </ul>
  31. <h2>Exporting Certificates from XCA</h2>
  32. <ol>
  33. <li>Launch XCA</li>
  34. <li>Open the PKI database if it is not already (File &gt; Open DataBase), enter password</li>
  35. <li>Click on the Certificates tab</li>
  36. <li>Right click the Intermediate CA certificate &gt; Export &gt; File</li>
  37. <li>Set the file name with a .crt extension and verify the export format is PEM (*.crt)</li>
  38. <li>Click OK</li>
  39. <li>Right click the Root CA certificate &gt; Export &gt; File</li>
  40. <li>Set the file name with a .crt extension and verify the export format is PEM (*.crt)</li>
  41. <li>Click OK</li>
  42. </ol>
  43. <h2>Push Certificates Into Windows Certificate Store Via GPO</h2>
  44. <ol>
  45. <li>Launch Group Policy Management (Control Panel &gt; Administrative Tools &gt; Group Policy Management)</li>
  46. <li>Right click Default Domain Policy &gt; Edit...</li>
  47. <li>Expand Computer Configuration &gt; Policies &gt; Windows Settings &gt; Security Settings &gt; Public Key Policies</li>
  48. <li>Right click Trusted Root Certification Authorities &gt; Import..</li>
  49. <li>Click Next</li>
  50. <li>Click Browse &gt; Select the exported Root CA .crt file &gt; Click Next</li>
  51. <li>Verify Include all extended properties is checked</li>
  52. <li>Click Next</li>
  53. <li>Click Next</li>
  54. <li>Click Finish</li>
  55. <li>Right click Intermediate Certification Authorities &gt; Import..</li>
  56. <li>Click Next</li>
  57. <li>Click Browse &gt; Select the exported Intermediate CA .crt file &gt; Click Next</li>
  58. <li>Verify Include all extended properties is checked</li>
  59. <li>Click Next</li>
  60. <li>Click Next</li>
  61. <li>Click Finish</li>
  62. <li>Close the Group Policy Management Editor window</li>
  63. <li>Force Group Policy update by Right clicking the start button &gt; Run &gt; cmd</li>
  64. <li>Type gpupdate /force</li>
  65. </ol> </div>
  66. </div>
  67. </body>
  68. </html>