configuring-certificate-authority-with-openssl

Build a two-tier PKI certificate authority hierarchy using OpenSSL and Python cryptography.

954|172|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill configuring-certificate-authority-with-openssl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: configuring-certificate-authority-with-openssl
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/cryptography/configuring-certificate-authority-with-openssl
Command: npx skills add https://github.com/xalgord/xalgorix --skill configuring-certificate-authority-with-openssl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Setting up a Certificate Authority correctly is error-prone: missing name constraints, weak signature algorithms, or absent revocation endpoints can silently undermine an entire PKI. This Skill guides the creation of a secure Root CA and Intermediate CA hierarchy with proper extensions, constraints, and revocation mechanisms.

Core Features & Use Cases

  • Two-Tier CA Hierarchy: Create an offline Root CA and an operational Intermediate CA with correct basicConstraints, keyUsage, and path length limits.
  • Certificate Issuance & Revocation: Issue server, client, and code-signing certificates, and configure CRL distribution points and OCSP responders.
  • Misconfiguration Detection: Verify chains end-to-end with openssl verify, enforce nameConstraints, and reject SHA-1 signatures or rogue CA certificates.
  • Use Case: A security engineer standing up an internal PKI uses this Skill to generate the Root and Intermediate CAs, issue TLS server certificates, and validate that a cert violating name constraints is properly rejected.

Quick Start

Use the configuring-certificate-authority-with-openssl skill to create a Root CA and Intermediate CA, then issue and verify a server certificate for my test domain.

Frequently Asked Questions about configuring-certificate-authority-with-openssl

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Root CA and Intermediate CA with OpenSSL?

Generate a self-signed Root CA certificate with basicConstraints=critical,CA:TRUE, then create an Intermediate CA signed by the root with pathlen:0. Keep the root key offline and use 4096-bit RSA or P-384 ECDSA for both CA keys.

How to issue server certificates from an Intermediate CA?

Create a CSR for the server, then sign it with the Intermediate CA including extendedKeyUsage=serverAuth and a crlDistributionPoints extension. Verify the result chains correctly with openssl verify -CAfile root.pem -untrusted intermediate.pem leaf.pem.

What key size should a Certificate Authority use?

CA keys should use a minimum of 4096-bit RSA or P-384 ECDSA, and the root key must be stored offline or in an air-gapped HSM. Signing algorithms must be SHA-256 or SHA-384; SHA-1 and MD5 signatures are forgeable and must be rejected.

Why does my intermediate CA certificate fail validation?

Common causes include missing basicConstraints=critical,CA:TRUE, absent nameConstraints allowing unrestricted signing, or an incomplete chain file. Check extensions with openssl x509 -text -noout and confirm the full chain verifies against the root.

Does OpenSSL support certificate revocation with CRL and OCSP?

Yes, OpenSSL can generate Certificate Revocation Lists and the CA certificates should embed crlDistributionPoints and authorityInfoAccess extensions pointing to the CRL URL and OCSP responder. Revoked certificates must appear in the published CRL for revocation checking to work.