-
Notifications
You must be signed in to change notification settings - Fork 58
/
0004.html
98 lines (90 loc) · 4.58 KB
/
0004.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!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>