lupaxa.certtool.example¶
Helpers for generating example configuration files.
Key Functions¶
-
build_example_config() -> dict[str, object]
Build an in-memory example JSON configuration structure which includes: -
A realistic DN
- Reasonable config defaults
- Sample
subject_alt_names -
Example
passphrase -
generate_example_config(example_file: Path | None) -> None
Write the example JSON configuration either to: -
stdout(ifexample_fileisNone), or - The specified file, creating parent directories as needed.