r/linuxadmin • u/Haunting_Meal296 • Oct 27 '25
Need advise to decide https certificate approach
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
View all comments
Show parent comment
1
u/Haunting_Meal296 Oct 27 '25
Good point, and yes, you've described the current situation very well...
For now it was decided just to stay with B (unique self-signed certs) and accept the browser warning, since it’s the standard behavior for local devices.
But I want to solve this long term issue from the get-go. The cloud-based config approach sounds clean and defintiely the way to go, but it's truly an overkill for our project.