# HTTPS on Docker Install with own SSL Cert

**URL:** https://community.xibo.org.uk/t/https-on-docker-install-with-own-ssl-cert/28469
**Category:** CMS Installation
**Created:** [December 8, 2022, 9:16pm UTC](https://community.xibo.org.uk/t/https-on-docker-install-with-own-ssl-cert/28469 "2022-12-08T21:16:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MilligramSam](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/m/779978/32.png) [@MilligramSam](https://community.xibo.org.uk/u/MilligramSam)
#### Post date: [December 8, 2022, 9:16pm UTC](https://community.xibo.org.uk/t/https-on-docker-install-with-own-ssl-cert/28469/1 "2022-12-08T21:16:31Z")

</div>

# CMS Version

3.3.0

# Installation Method

Docker

# Operating System

Ubuntu Server

# Issue

I have installed Xibo in docker, using the guide here: [Xibo CMS with Docker on Ubuntu 22.04](https://community.xibo.org.uk/t/xibo-cms-with-docker-on-ubuntu-18-04/9392) - However, instead of LetsEncrypt, I have my own SSL cert I want to use, however, struggling to get this working with Apache, does anyone have a guide on this or can point be in the right direction?

Cheers!

---

<div class="post-metadata">

### Author: ![alex](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/alex/32/5782_2.png) [@alex](https://community.xibo.org.uk/u/alex)
#### Post date: [December 9, 2022, 8:19am UTC](https://community.xibo.org.uk/t/https-on-docker-install-with-own-ssl-cert/28469/2 "2022-12-09T08:19:37Z")

</div>

Instead of configuring LetsEncrypt, you add your SSL certificate to Apache’s configuration as you would for any other Apache installation with an SSL certificate.

There’s multiple guides out there to configuring SSL on Apache. Broadly it’s something like this:

```auto
<VirtualHost *:443>

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        ProxyPreserveHost On
        RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}

        ProxyPass / http://127.0.0.1:8080/
        ProxyPassReverse / http://127.0.0.1:8080/

        SSLEngine on
        SSLCertificateFile /path/to/your_certificate.crt
        SSLCertificateKeyFile /path/to/your_private.key
        SSLCertificateChainFile /path/to/intermediate_bundle.crt

</VirtualHost>

```

---

<div class="post-metadata">

### Author: ![MilligramSam](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/m/779978/32.png) [@MilligramSam](https://community.xibo.org.uk/u/MilligramSam)
#### Post date: [December 9, 2022, 9:09am UTC](https://community.xibo.org.uk/t/https-on-docker-install-with-own-ssl-cert/28469/3 "2022-12-09T09:09:24Z")

</div>

Hi Alex

Thanks - I had thought that would be the case and is what I have done since, however, this now gives me the apache default page rather than the xibo login and still no SSL cert.

---

<div class="post-metadata">

### Author: ![alex](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/alex/32/5782_2.png) [@alex](https://community.xibo.org.uk/u/alex)
#### Post date: [December 13, 2022, 9:12am UTC](https://community.xibo.org.uk/t/https-on-docker-install-with-own-ssl-cert/28469/4 "2022-12-13T09:12:50Z")

</div>

You’re likely missing the `ProxyPass` and `ProxyPassReverse` lines

---

<div class="post-metadata">

### Author: ![system](https://community.xibo.org.uk/uploads/default/original/2X/a/a8759c2d8cc561474733895ac75beeb830f5d8ca.png) [@system](https://community.xibo.org.uk/u/system)
#### Post date: [March 14, 2023, 3:13pm UTC](https://community.xibo.org.uk/t/https-on-docker-install-with-own-ssl-cert/28469/5 "2023-03-14T15:13:46Z")

</div>

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.
