nvflare.tool.cert.cert_commands module

nvflare cert subcommand handlers: init, request, approve, and internal csr/sign helpers.

generate_csr_files(name: str, org: str, cert_type: str, output_dir: str, force: bool = False) dict[source]

Generate a participant private key and CSR using the existing cert logic.

handle_cert_approve(args)[source]
handle_cert_csr(args)[source]
handle_cert_init(args)[source]
handle_cert_request(args)[source]
handle_cert_sign(args)[source]
sign_csr_files(csr_path: str, ca_dir: str, output_dir: str, cert_type: str | None = None, accept_csr_role: bool = False, valid_days: int = 1095, force: bool = False, csr: CertificateSigningRequest | None = None, server_default_host: str | None = None, server_additional_hosts=None) dict[source]

Sign a CSR using the existing cert signing logic and write cert/rootCA files.