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.
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.
Getting Started
- Download X Certificate Key Manager Download
- Extract X Certificate Key Manager
- Launch xca.exe
- Select File > Create Database
- Name your PKI database and click save
- Enter a password for you database
- Re-type to confirm and click OK
Creating the Root Certificate Authority
- Navigate to the Certificates tab
- Click the New Certificate button
- Click the Subject tab
- Complete the Distinguished Name section
internalName: i12bretro Root CA
countryName: US
stateOrProvinceName: Virginia
localityName: Northern
organizationName: i12bretro
organizationUnitName: i12bretro Certificate Authority
commonName: i12bretro Root CA - Click the Generate a New Key button
- Enter a name and set the key size to at least 2048
- Click Create
- Click on the Extensions tab
- Select Certificate Authority from the type list
- Update the validity dates to fit your needs
- Click the Key Usage tab
- Under Key Usage select Digital Signature, Key Encipherment and Certificate Sign
- Click OK to create the certificate
Creating the Intermediate Certificate Authority
- From the Certificates tab, right click on your Root CA certificate
- Select New
- On the Source tab, make sure Use this Certificate for signing is selected
- Verify your Root CA certificate is selected from the drop down
- Click the Subject tab
- Complete the Distinguished Name section
internalName: i12bretro Intermediate CA
countryName: US
stateOrProvinceName: Virginia
localityName: Northern
organizationName: i12bretro
organizationUnitName: i12bretro Certificate Authority
commonName: i12bretro Intermediate CA - Click the Generate a New Key button
- Enter a name and set the key size to at least 2048
- Click Create
- Click on the Extensions tab
- Select Certificate Authority from the type list
- Update the validity dates to fit your needs
- Click the Key Usage tab
- Under Key Usage select Digital Signature, Key Encipherment and Certificate Sign
- Click OK to create the certificate
- From this point forward, use the intermediate certificate to create end entity certificates