Update UI Certifciate from filesystem

Problem/Justification
I would like an easier way to keep the ui certifiate up to date, by refreshing the ui_certificate from a certificate files on the filesystem. Many users already have means of generating certificates and delivering to the Truenas file system. It would be great if the ui_certificate can be refreshed from the certificate file, either automatically or triggered via script.

Impact
This would make it easier for users to keep the ui certificate up to date for example if they use any other ACME provider than Cloudflare or AWS that are supported.

User Story
User already has means of renewing certificates or distributing certificates. The user will keep the certificate on /etc/certificates/cert.key and /etc/certificates/cert.crt up to date.

Truenas will update the ui_certificate based on cert files, automatically or triggered via API.

An implementation in the ui can be to open up an existing Certificate object, then allow it to be updated from a local key and cert file. The same could then be triggered via the API like.
Alternatively using a similar process to automatic ACME renewal, but just pick up the new certificate from the filesystem.

This is already possible. See:

and

1 Like

Thanks! I will give these a try.