Skip to main content

tls_generate_cert

Function tls_generate_cert 

Source
pub async fn tls_generate_cert(
    app_handle: AppHandle,
    hostname: String,
) -> Result<CertificateGenerationResult, String>
Expand description

Generate a server certificate for a hostname

This will generate a new certificate if one doesn’t exist, or return an existing valid certificate.

§Arguments

  • hostname - The hostname (e.g., “code.editor.land”)

Returns success message with certificate details.