Expand description
§TLS certificate management commands
Tauri commands that expose the local CA + server cert cache
(managed by CertificateManager) to the webview. Each
command lives in its own sibling file; the wire-bound names
match the file names.
Currently registered nowhere - kept for the upcoming
TLS-aware webview surface. Adding the entries to
Binary/Main/Entry.rs::invoke_handler! is the activation
step.
Modules§
- Certificate
Generation Result - Result envelope returned by
tls_generate_cert. - Certificate
Status - TLS certificate status snapshot returned by
tls_check_cert_status. - tls_
check_ cert_ status tls_check_cert_statusTauri command - parse a cached cert’svalid_until(RFC3339), compare against now, and flag whether renewal is due (withinCertificateManager::RENEWAL_THRESHOLD_DAYS).- tls_
delete_ cert tls_delete_certTauri command - currently aliased torenew_certificate(regenerates instead of removing). TODO: add a realCertificateManager::delete_certificateso the cache entry actually disappears.- tls_
generate_ cert tls_generate_certTauri command - issue a fresh server cert under the CA forhostname(or return the existing valid one).- tls_
get_ all_ certs tls_get_all_certsTauri command - hostname → cert info map for the diagnostic panel.- tls_
get_ ca_ cert tls_get_ca_certTauri command - returns the CA certificate PEM so the webview can pin it or install it into the system trust store.- tls_
get_ server_ cert_ info tls_get_server_cert_infoTauri command - certificate info lookup for one hostname (returnsNonewhen no cached cert).- tls_
initialize tls_initializeTauri command - loads the CA from the keyring or generates a fresh one. Must run before any other TLS command on this app handle.- tls_
renew_ certificate tls_renew_certificateTauri command - regenerates the cached server cert forhostname.