Project

General

Profile

run wthttpd as non-root user with cert & private key

Added by Maurice Verreck 7 months ago

Is it fundamentally possible to run wthttp as non-root user with a (let's encrypt) certificate and private key? My application previously ran succesfully as https with a root user.
However, I prefer to use a specially configured non-root user to start up the application. Http works fine, but https does not, because wthttp demands a root user for access to the private key, even after setting access privileges accordingly.
I entered no special rules in my config. Should I? I believe nginx has something like 'user nonrootuser'. Any help is highly appreciated.


Replies (1)

RE: run wthttpd as non-root user with cert & private key - Added by Matthias Van Ceulebroeck 7 months ago

Hello Maurice,

if it worked before as a root user, your configuration (specifically the HTTPS part) would be in order.
If the file is readable for all users, the application should be able to reach it. Are you certain that there isn't a directory in the key's path that isn't readable for the user you are running wthttp for?

If this doesn't solve your issue, please let me know.

Best,
Matthias

    (1-1/1)