XCA Home Lab PKI Guide

Created using Perplexity AI

Guide to Using XCA for Home Lab PKI: Root CA, Intermediate CA, and Certificates

Using XCA to Issue Root CA, Intermediate CA, and Certificates

1. Setting Up XCA and Creating a New Database

2. Creating a Root CA with Templates

3. Creating an Intermediate CA

4. Creating Certificates with Key Usages using Templates

5. Issuing Certificates from Templates


Security Best Practices for XCA and Home Lab PKI


Importing CA Certificates on Systems

Windows

  1. Double-click the Root CA certificate file (.crt or .cer).
  2. Click “Install Certificate.”
  3. Choose Local Machine store and run as Administrator.
  4. Navigate to Trusted Root Certification AuthoritiesCertificates.
  5. Use Import wizard, select the CA cert and import.
  6. Confirm and finish; restart browsers if needed.

Linux (Ubuntu/Debian example)

  1. Copy your CA certificate (.crt) to /usr/local/share/ca-certificates/:
    sudo cp your-ca.crt /usr/local/share/ca-certificates/
    
  2. Update CA certificates:
    sudo update-ca-certificates
    
  3. For other distros like RHEL/CentOS or Fedora, use the equivalent CA cert directory and trust update commands.

This guide equips users to establish a private PKI with XCA for home lab use, including creating root and intermediate CAs, issuing certificates with appropriate key usages, applying security best practices, and deploying CA certificates on client systems.