bareos web ui with https

64 views
Skip to first unread message

Markus Dubois

unread,
Feb 13, 2024, 8:28:00 AM2/13/24
to bareos-users
Hi,

i've enabled TLS between dir-sd-client. I've also configured the web-ui according to the docs (directors.ini)
tls between sd-dir-client is working,
but i've been struggling to get the web ui response to https, it is still http
any hints? 

best regards

Bruno Friedmann (bruno-at-bareos)

unread,
Feb 15, 2024, 4:37:47 AM2/15/24
to bareos-users
Hello Markus,

I hope you noticed in Bareos documentation, that connection between php-fpm (webui) and the director had to be unencrypted (due to missing tls-psk support in upstream php-curl module).

But to have https and as such tls connection between your browser and the webui you will have to find how to activate ssl/tls module for your favorite httpd server on your distribution.
Globally it means activate the encryption module on the webserver and install a certificate.

Hope this will drive you to a solution.

Joshua Myles

unread,
Feb 15, 2024, 7:28:34 AM2/15/24
to bareos-users
If you're using Apache HTTPd it's pretty straightforward. A rough outline for RHEL 9, assuming you already have Bareos Web UI working via HTTP:
  1. Install mod_ssl and dependencies
    dnf install mod_ssl
  2. Configure firewall
    firewall-cmd --zone=public --add-service=https
    firewall-cmd --zone=public --add-service=https --permanent
  3. Place a certificate and key in /etc/pki/tls
  4. Edit /etc/httpd/conf.d/ssl.conf
    ServerName name.on.your.cert.example.com
    SSLCertificateFile /etc/pki/tls/certs/name.on.your.cert.example.com.crt
    SSLCertificateKeyFile /etc/pki/tls/private/name.on.your.cert.example.com.key
    SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt
  5. Restart HTTPd
    systemctl restart httpd
Josh

Markus Dubois

unread,
Feb 26, 2024, 1:47:59 PM2/26/24
to bareos-users
thanks, i'll try that
Reply all
Reply to author
Forward
0 new messages