Hypha Space Logo

hypha-certutil CLI Reference

This document contains the help content for the hypha-certutil command-line program.

Command Overview:

hypha-certutil

Certificate generation and management tool for the Hypha network.

Creates a three-tier certificate hierarchy:

Uses Ed25519 exclusively for compatibility with libp2p and strong security with small key sizes. All private keys are stored in PKCS#8 format as required by the Hypha network.

Usage: hypha-certutil <COMMAND>

Important! For production use, it is not recommended to use this tool as it is not designed for high security and scalability. Instead, consider using a dedicated PKI management tool or a third-party service providers.

Subcommands:

hypha-certutil root

Generate a Root CA certificate (top of PKI hierarchy)

Creates the root certificate authority that forms the trust anchor for your entire PKI. This certificate signs Organization CAs, which in turn sign node certificates.

OUTPUT FILES:

The certificate uses Ed25519 algorithm and includes basic constraints marking it as a CA certificate with path length constraint.

Usage: hypha-certutil root [OPTIONS] --organization <ORGANIZATION>

Example:

hypha-certutil root -o 'ACME Corporation' --country US -d /secure/root-ca
Options:

hypha-certutil org

Generate an Organization/Tenant CA (intermediate CA)

Creates an intermediate CA certificate signed by the Root CA. Organization CAs represent tenants or organizational units in the Hypha network. Each tenant gets their own CA that can issue node certificates, providing cryptographic isolation.

OUTPUT FILES:

The trust chain file bundles the Organization CA and Root CA certificates, making it easy to configure nodes with the complete trust chain.

Usage: hypha-certutil org [OPTIONS] --root-cert <ROOT_CERT> --root-key <ROOT_KEY> --organization <ORGANIZATION>

Example: Create Organization CA for tenant 'acme-corp'

hypha-certutil org --root-cert certs/root/root-ca-cert.pem
  --root-key certs/root/root-ca-key.pem
  -o acme-corp -d certs/tenants/acme
Options:

hypha-certutil node

Generate a node certificate (end-entity certificate)

Creates a certificate for an individual node, service, or component in the Hypha network. Node certificates are signed by an Organization.

These certificates are used by:

OUTPUT FILES:

The trust chain enables the node to validate peer certificates by including the full CA hierarchy.

Usage: hypha-certutil node [OPTIONS] --ca-cert <CA_CERT> --ca-key <CA_KEY> --name <NAME>

Example: simple scheduler certificate

hypha-certutil node
    -n scheduler
    --ca-cert acme-ca-cert.pem
    --ca-key acme-ca-key.pem
    -d certs/nodes/scheduler-01
Options: