{"id":46152345,"url":"https://github.com/lupaxa-security-toolbox/certtool","last_synced_at":"2026-03-02T09:02:28.450Z","repository":{"id":325340182,"uuid":"1100787624","full_name":"lupaxa-security-toolbox/certtool","owner":"lupaxa-security-toolbox","description":"A clean, modern, fully-typed Python CLI and library for generating self-signed X.509 certificates, certificate signing requests (CSRs), and private keys.","archived":false,"fork":false,"pushed_at":"2026-01-26T04:24:08.000Z","size":219,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-26T19:29:07.834Z","etag":null,"topics":["certificates","lupaxa","lupaxa-security-toolbox","security","the-lupaxa-project"],"latest_commit_sha":null,"homepage":"https://thelupaxaproject.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lupaxa-security-toolbox.png","metadata":{"files":{"readme":"README-PYPI.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":"docs/security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-20T18:56:42.000Z","updated_at":"2026-01-26T04:24:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lupaxa-security-toolbox/certtool","commit_stats":null,"previous_names":["lupaxa-security-toolbox/self-signed-certificates","lupaxa-security-toolbox/certtool"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/lupaxa-security-toolbox/certtool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupaxa-security-toolbox%2Fcerttool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupaxa-security-toolbox%2Fcerttool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupaxa-security-toolbox%2Fcerttool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupaxa-security-toolbox%2Fcerttool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lupaxa-security-toolbox","download_url":"https://codeload.github.com/lupaxa-security-toolbox/certtool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupaxa-security-toolbox%2Fcerttool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29996274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["certificates","lupaxa","lupaxa-security-toolbox","security","the-lupaxa-project"],"created_at":"2026-03-02T09:02:27.665Z","updated_at":"2026-03-02T09:02:28.442Z","avatar_url":"https://github.com/lupaxa-security-toolbox.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-disable --\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/lupaxa-security-toolbox\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/the-lupaxa-project/org-logos/master/orgs/security-toolbox/readme-logo.png\" alt=\"Project Logo\" width=\"256\"/\u003e\u003cbr/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003ch3 align=\"center\"\u003e\n  The Lupaxa Security Toolbox\u003cbr /\u003e\n  Part of The Lupaxa Project\n\u003c/h3\u003e\n\n\u003cbr /\u003e\n\n# lupaxa-certtool\n\nA clean, modern, fully-typed Python CLI and library for generating **self-signed X.509 certificates**, **certificate signing requests (CSRs)**, and **private keys**.\n\nBuilt for automation, reproducibility, and bulk-generation workflows used by The Lupaxa Project.\n\n## Features\n\n- Generate **self-signed certificates**, **private keys**, and **CSRs**\n- Generate from:\n  - **JSON config file**\n  - **Directory of config files** (bulk mode)\n  - **Pure command-line flags**\n- Output:\n  - To **stdout**\n  - Or into an **output directory**, with one folder per certificate\n- Supports:\n  - RSA key generation\n  - SHA-256 / SHA-384 / SHA-512 digests\n  - Validity period configuration\n  - Optional **private key encryption** with passphrase\n  - **Subject Alternative Names (SANs)** via JSON or CLI\n- Includes:\n  - `--generate-example` to produce a full example JSON config\n  - `--inspect-cert` to analyze existing PEM certificates\n  - `--validate-config` to validate config files before use\n- Fully typed, linted, formatted, and tested\n- MkDocs documentation included\n\n## Installation\n\n### From PyPI\n\n```bash\npip install lupaxa-certtool\n```\n\n### From source (development mode)\n\n```bash\npip install -e \".[dev]\"\n```\n\n## Usage\n\n### Basic self-signed certificate from CLI\n\n```bash\ncerttool \\\n  --countryName UK \\\n  --stateOrProvinceName Somerset \\\n  --localityName Glastonbury \\\n  --organizationName \"Lupaxa Project\" \\\n  --commonName \"dev.internal\"\n```\n\n## Using JSON Configuration\n\n### Generate an example config\n\n```bash\ncerttool --generate-example --example-file dev-internal-cert.json\n```\n\n### Use a JSON config file\n\n```bash\ncerttool --config dev-internal-cert.json\n```\n\n### Use a directory of configs (bulk mode)\n\n```bash\ncerttool --config-dir configs/\n```\n\n## Output Directory Structure\n\nIf you pass:\n\n```bash\ncerttool --config-dir configs/ --output-dir output/\n```\n\nYou get:\n\n```bash\noutput/\n├── dev.internal/\n│   ├── cert.pem\n│   ├── csr.pem\n│   └── key.pem\n└── api.internal/\n    ├── cert.pem\n    ├── csr.pem\n    └── key.pem\n```\n\nEach certificate gets its own folder to prevent overwriting.\n\n## Private Key Encryption\n\n### JSON\n\n```bash\n{\n  \"passphrase\": \"your-secret-here\"\n}\n```\n\n### CLI (overrides JSON)\n\n```bash\ncerttool --config dev-internal-cert.json --passphrase \"some-secret\"\n```\n\n## Inspect a Certificate\n\n```bash\ncerttool --inspect-cert output/dev.interal/cert.pem\n```\n\n## Documentation\n\nThe project includes MkDocs documentation.\n\n### Online documentation:\n\n[Documentation](https://lupaxa-security-toolbox.github.io/certtool/)\n\nFull documentation is available in the docs/ directory or served locally:\n\n### Serve docs locally\n\n```bash\nmkdocs serve\n```\n\nThen open the printed URL (usually http://127.0.0.1:8000/) in your browser.\n\n## Development\n\nClone the repository and install dev dependencies:\n\n```bash\npip install -e \".[dev]\"\n```\n\nUseful make targets:\n\n```bash\nmake test        # run tests\nmake type        # type checking (mypy)\nmake check-style # lint + format + type\nmake check-all   # run tests, coverage, and audit\n```\n\n\u003cfooter\u003e\n    \u003ch1\u003e\u0026nbsp;\u003c/h1\u003e\n    \u003cp align=\"center\"\u003e\n        \u003cstrong\u003e\n            \u0026copy; The Lupaxa Project.\n        \u003c/strong\u003e\n        \u003cbr /\u003e\n        \u003cem\u003e\n            Where exploration meets precision.\u003cbr /\u003e\n            Where the untamed meets the engineered.\n        \u003c/em\u003e\n    \u003c/p\u003e\n\u003c/footer\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flupaxa-security-toolbox%2Fcerttool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flupaxa-security-toolbox%2Fcerttool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flupaxa-security-toolbox%2Fcerttool/lists"}