New to Claude Skills? Learn how to install them →

mukul975 on GitHub

Configuring Certificate Authority with OpenSSL

Free

Establish a secure PKI hierarchy using OpenSSL.

Get this skill

Free · Opens the source repo

What Configuring Certificate Authority with OpenSSL does

This skill provides a comprehensive guide to setting up a two-tier Public Key Infrastructure (PKI) Certificate Authority (CA) hierarchy using OpenSSL and the Python cryptography library. It is designed for developers and security professionals who need to establish a robust CA system, which includes an offline Root CA and an online Intermediate CA. The skill covers essential aspects such as creating self-signed certificates, issuing and revoking X.509 certificates, and managing certificate policies, making it a valuable resource for anyone involved in security architecture or compliance-related tasks.

The skill outlines the process of building a PKI hierarchy programmatically, ensuring that users can implement security controls that align with compliance requirements. It also addresses critical security considerations, such as the necessity of keeping the Root CA offline and using strong cryptographic algorithms. Users will learn to configure Certificate Revocation Lists (CRLs) and Online Certificate Status Protocol (OCSP) responders, which are vital for maintaining the integrity and trustworthiness of the certificates issued.

By utilizing this skill, users can effectively manage their internal CA, ensuring that they can issue server and client certificates securely. This is particularly useful for organizations looking to improve their security posture or those conducting security assessments that require a well-defined PKI implementation. The skill is structured to provide clear objectives and validation criteria, making it easy for users to verify their setup and ensure compliance with best practices in cryptography and certificate management.

When to use it

Use this skill when deploying or configuring a Certificate Authority in your environment or when establishing security controls for compliance.

When not to use it

This skill may not be suitable for users without a basic understanding of cryptography or those who do not have access to a test environment for implementation.

What you can build with it

Setting Up an Internal CA

Use this skill to establish an internal Certificate Authority for issuing and managing certificates within your organization.

Compliance and Security Assessments

Leverage this skill during security assessments to ensure your PKI implementation meets compliance standards.

Improving Security Architecture

Integrate this skill into your security architecture to enhance the management of digital certificates and trust hierarchies.

How to install Configuring Certificate Authority with OpenSSL

View source

1. Install with the skills CLI

npx skills add mukul975/anthropic-cybersecurity-skills/configuring-certificate-authority-with-openssl --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by mukul975

Configuring Certificate Authority with OpenSSL

Overview

A Certificate Authority (CA) is the trust anchor in a PKI hierarchy, responsible for issuing, signing, and revoking digital certificates. This skill covers building a two-tier CA hierarchy (Root CA + Intermediate CA) using OpenSSL and the Python cryptography library, including CRL distribution, OCSP responder configuration, and certificate policy management.

When to Use

  • When deploying or configuring configuring certificate authority with openssl capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Familiarity with cryptography concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Objectives

  • Create a Root CA with self-signed certificate
  • Create an Intermediate CA signed by the Root CA
  • Issue server and client certificates from the Intermediate CA
  • Configure Certificate Revocation Lists (CRLs)
  • Implement certificate policies and constraints
  • Build a complete PKI hierarchy programmatically

Key Concepts

CA Hierarchy

Root CA (offline, air-gapped)
  |
  +-- Intermediate CA (online, operational)
        |
        +-- Server Certificates
        +-- Client Certificates
        +-- Code Signing Certificates

Certificate Extensions

ExtensionPurposeCritical
basicConstraintsCA:TRUE/FALSE, pathLenConstraintYes
keyUsagekeyCertSign, cRLSign, digitalSignatureYes
extendedKeyUsageserverAuth, clientAuth, codeSigningNo
subjectKeyIdentifierHash of public keyNo
authorityKeyIdentifierIssuer's key identifierNo
crlDistributionPointsURL to CRLNo
authorityInfoAccessOCSP responder URLNo

Security Considerations

  • Root CA private key must be stored offline (air-gapped HSM)
  • Use minimum 4096-bit RSA or P-384 ECDSA for CA keys
  • Set path length constraints on intermediate CAs
  • Implement certificate policies (OIDs)
  • Enable CRL and OCSP for revocation checking
  • Audit all certificate issuance operations

Validation Criteria

  • Root CA self-signed certificate is valid
  • Intermediate CA certificate chains to Root CA
  • Issued certificates chain to Intermediate -> Root
  • Path length constraints are enforced
  • CRL is generated and accessible
  • Revoked certificates appear in CRL
  • Certificate policies are correctly embedded

Frequently asked questions about Configuring Certificate Authority with OpenSSL

Similar skills