Need advise to decide https certificate approach

Posted by Haunting_Meal296@reddit | linuxadmin | View on Reddit | 25 comments

Hi, we are working on an embedded linux project that hosts a local web dashboard through Nginx. The web UI let the user configure hardware parameters (it’s not public-facing), usually accessed via local IP.

We’ve just added HTTPS support and now need to decide how to handle certificates long-term.

A) Pre-generate one self-signed cert and include it in the rootfs

B) Dynamically generate a self-signed cert on each build

C) Use a trusted CA e.g. Let’s Encrypt or a commercial/internal CA.

We push software updates every few weeks.. The main goal is to make HTTPS stable and future-proof, the main reason is that later we’ll add login/auth and maybe integrate cloud services (Onedrive, Samba, etc.)

For this kind of semi-offline embedded product, what is considered best practice for HTTPS certificate management? Thank you for your help