1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Creating a Self-Signed Public Key Infrastructure (PKI)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <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">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Creating a Self-Signed Public Key Infrastructure (PKI)">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="revised" content="09/03/2022 09:37:50 AM" />
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Creating a Self-Signed Public Key Infrastructure (PKI)</h1>
- </div>
- <div></div>
- <div id="content">
- <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>
- <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>
- <h2>Getting Started</h2>
- <ol>
- <li>Download X Certificate Key Manager<a href="https://hohnstaedt.de/xca/index.php/download" target="_blank"> Download</a></li>
- <li>Extract X Certificate Key Manager</li>
- <li>Launch xca.exe</li>
- <li>Select File > Create Database</li>
- <li>Name your PKI database and click save</li>
- <li>Enter a password for you database</li>
- <li>Re-type to confirm and click OK</li>
- </ol>
- <h2>Creating the Root Certificate Authority</h2>
- <ol>
- <li>Navigate to the Certificates tab</li>
- <li>Click the New Certificate button</li>
- <li>Click the Subject tab</li>
- <li>Complete the Distinguished Name section
- <p>internalName: i12bretro Root CA<br />
- countryName: US<br />
- stateOrProvinceName: Virginia<br />
- localityName: Northern<br />
- organizationName: i12bretro<br />
- organizationUnitName: i12bretro Certificate Authority<br />
- commonName: i12bretro Root CA</p>
- </li>
- <li>Click the Generate a New Key button</li>
- <li>Enter a name and set the key size to at least 2048</li>
- <li>Click Create</li>
- <li>Click on the Extensions tab</li>
- <li>Select Certificate Authority from the type list</li>
- <li>Update the validity dates to fit your needs</li>
- <li>Click the Key Usage tab</li>
- <li>Under Key Usage select Digital Signature, Key Encipherment and Certificate Sign</li>
- <li>Click OK to create the certificate</li>
- </ol>
- <h2>Creating the Intermediate Certificate Authority</h2>
- <ol>
- <li>From the Certificates tab, right click on your Root CA certificate</li>
- <li>Select New</li>
- <li>On the Source tab, make sure Use this Certificate for signing is selected</li>
- <li>Verify your Root CA certificate is selected from the drop down</li>
- <li>Click the Subject tab</li>
- <li>Complete the Distinguished Name section
- <p>internalName: i12bretro Intermediate CA<br />
- countryName: US<br />
- stateOrProvinceName: Virginia<br />
- localityName: Northern<br />
- organizationName: i12bretro<br />
- organizationUnitName: i12bretro Certificate Authority<br />
- commonName: i12bretro Intermediate CA</p>
- </li>
- <li>Click the Generate a New Key button</li>
- <li>Enter a name and set the key size to at least 2048</li>
- <li>Click Create</li>
- <li>Click on the Extensions tab</li>
- <li>Select Certificate Authority from the type list</li>
- <li>Update the validity dates to fit your needs</li>
- <li>Click the Key Usage tab</li>
- <li>Under Key Usage select Digital Signature, Key Encipherment and Certificate Sign</li>
- <li>Click OK to create the certificate</li>
- <li>From this point forward, use the intermediate certificate to create end entity certificates</li>
- </ol> </div>
- </div>
- </body>
- </html>
-
|