kcm: Don't generate a TLS certificate that expires after one day

KRDPServerConfig::generateCertificate() only runs when no certificate is configured, so the generated certificate is never regenerated. Because it is created with -days 1, it expires the day after it is generated, and clients such as the Windows Remote Desktop Connection then warn about an expired server certificate.

This changes the validity to 3650 days.

Note: !263 moves certificate generation to the server and keeps -days 1; if that lands first, the same change applies there.

Merge request reports

Loading
Loading