SSL certificates cause server start failure

Bug #1017301 reported by TJ
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mumble (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After installing a server digital certificate from a public certicate authority (CA) into the preferred server-wide location for such files:

# ls -l /etc/ssl/certs/iam.tj.pem /etc/ssl/private/iam.tj.key
-r--r--r-- 1 root root 1948 2012-06-25 01:15 /etc/ssl/certs/iam.tj.pem
-rw-r----- 1 root root 1679 2012-06-25 01:10 /etc/ssl/private/iam.tj.key

the mumble-server fails to start, reporting:

# service mumble-server start
<W>2012-06-25 01:51:20.111 Initializing settings from /etc/mumble-server.ini (basepath /etc)
<C>2012-06-25 01:51:20.113 Failed to read /etc/ssl/private/iam.tj.key
<F>2012-06-25 01:51:20.113 No private key found in certificate or key file.

This is caused by the service start-up script '/etc/init.d/mumble-server' setting the user ID of the daemon process to "mumble-server" rather than letting it start is "root".

The daemon drops privileges itself to the user ID configured in '/etc/mumble-server.ini' once it has read the SSL key file and (potentially) connected to a privileged port number (les than 1024):

uname=mumble-server

The workaround is to add the following to the end of '/etc/defaults/mumble-server'

# If the server is using SSL certificates installed in a root-only location such as
# /etc/ssl/certs/ and etc/ssl/private/ then the daemon must start as root in order
# to read these files - especially to read the key.
# the daemon drops privileges itself later based on the /etc/mumble-server.ini "uname" setting
USER=root

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mumble (Ubuntu):
status: New → Confirmed
Revision history for this message
earthmeLon (earthmelon) wrote :

Thank you for providing a solution to the problem.

This affects debian's builds as well.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.