# Enabling HTTPS for your Pi-hole Web Interface

**URL:** <https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771>\
**Category:** Community How-to's\
**Tags:** wiki\
**Created:** [December 7, 2017, 4:11am UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771 "2017-12-07T04:11:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![WaLLy3K](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/wally3k/32/649_2.png) [@WaLLy3K](https://discourse.pi-hole.net/u/WaLLy3K)\
**Post date:** [December 7, 2017, 4:11am UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/1 "2017-12-07T04:11:42Z")

</div>

# How can I enable HTTPS (SSL/TLS) for my Pi-hole Web Interface?

Many users run their Pi-hole on Virtual Private Servers and such, meaning that they would need to access the Web Interface via insecure HTTP. Now, you are able to configure Pi-hole so you can securely access your Web Interface, and not cause issues with blocked HTTPS content.

### What has changed to allow this?

With the release of v3.2, we have made changes to our default `lighttpd` config to not automatically enable the SSL engine if `/etc/lighttpd/conf-enabled/letsencrypt.conf` was detected, as your certificate of `pihole.example.com` will not match `advertiser.com`.

Blindly enabling HTTPS for your Pi-hole Web Interface via Let's Encrypt or a Self-Signed certificate causes issues such as:

- Browsing slowdowns on any site visited, as blocked content needed to time out (or load infinitely)
- Web Browser errors, such as mismatched certificates
- Operating system popups on macOS/iOS devices on every site containing blocked content

As you can imagine, that is not a very good end-user experience!

With the instructions below, you will be able to selectively enable HTTPS for _your_ Fully Qualified Domain Name (FQDN), and have it not conflict with blocked HTTPS enabled domains.

### How to get started

- Ensure you have a standard fully qualified domain name (e.g: `domain.com`, `pihole.example.com`, etc) that allows you to access your Pi-hole
- Deploy an SSL certificate for your FQDN
- Configure `lighttpd` to only enable the SSL engine for your FQDN

Assisting users with the first two steps is outside the scope of this article, so you will need to find tutorials that suits your level of skill. Having said that, we'd suggest checking out [Certbot](https://certbot.eff.org) by the EFF, which allows you to deploy a free SSL certificate issued by [Let's Encrypt](https://letsencrypt.org). The Certbot site provides you with instructions as to how to install the package, and to generate your first certificate. You will also need to ensure you set up the auto renewal tool, so that your certificate does not expire after 90 days!

### How to configure Pi-hole to use an SSL certificate

The `lighttpd` daemon will need a custom configuration to enable the SSL engine. Fortunately, you can configure all this from `/etc/lighttpd/external.conf` as this will not get overwritten when running a Pi-hole update.

To start, you will need to create a file called `combined.pem` as this is the `ssl.pemfile` that `lighttpd` expects to see. Run the following command:

```auto
  sudo cat /etc/letsencrypt/live/pihole.example.com/privkey.pem \
           /etc/letsencrypt/live/pihole.example.com/cert.pem | \
  sudo tee /etc/letsencrypt/live/pihole.example.com/combined.pem

```

Next, ensure the `lighttpd` user `www-data` can read the required certificates:

`sudo chown www-data -R /etc/letsencrypt/live`

Now, place the following into `/etc/lighttpd/external.conf` (again, making sure to subsitute `pihole.example.com` for your FQDN):

```auto
#Loading openssl
server.modules += ( "mod_openssl" )

setenv.add-environment = ("fqdn" => "true")
$SERVER["socket"] == ":443" {
	ssl.engine = "enable"
	ssl.pemfile = "/etc/lighttpd/combined.pem"
	ssl.openssl.ssl-conf-cmd = ("MinProtocol" => "TLSv1.3", "Options" => "-ServerPreference")
}

# Redirect HTTP to HTTPS
$HTTP["scheme"] == "http" {
    $HTTP["host"] =~ ".*" {
        url.redirect = (".*" => "https://%0$0")
    }
}

```

Finally, be sure to run `sudo service lighttpd restart` after this change has been made.

### Postscript

You can now take advantage of a HTTPS-secured Web Interface! If you wish, you can also host content on your Pi-hole by using `/var/www/html/landing.php` as your `/var/www/html/index.php` equivalent.

2018-07-16 Edit:  
Removed `ssl.use-compression = “disable”` as per @person51's [post](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/17).

2022-12-09 Edit:  
With a docker image newer or equal to 2022.04.01 the settings before didn't work anymore because lighttpd software has been updated, so no more old and insecure protocols will be accepted.

#### References:

- [With latest docker-image (2022.04.01) Web-GUI (https) doesn't work anymore: ./run: line 32: Segmentation fault lighttpd -D -f /etc/lighttpd/lighttpd.conf · Issue #1046 · pi-hole/docker-pi-hole · GitHub](https://github.com/pi-hole/docker-pi-hole/issues/1046#issuecomment-1343763619)
- [https://wiki.lighttpd.net/](https://wiki.lighttpd.net/)
- lighttpd TLS config reference can additionally be found at [Mozilla SSL Configuration Generator](https://ssl-config.mozilla.org/#server=lighttpd&config=modern)

---

<div class="post-metadata">

**Author:** ![noxide](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/n/87869e/32.png) [@noxide](https://discourse.pi-hole.net/u/noxide)\
**Post date:** [December 10, 2017, 7:20pm UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/2 "2017-12-10T19:20:38Z")

</div>

In going through your post/tutorial I had previously known that getting certbot up and going on raspbian can be very confusing/difficult for most users (especially on older versions of raspbian) so I wanted to share this link and suggest that you include it in the "How to get started" section so they can easily figure out how to get certbot up and going on raspbian:

> **[Installing Certbot on Raspbian Jessie Lite for deploying Let’s Encrypt...](https://www.techcoil.com/blog/installing-certbot-on-raspbian-jessie-lite-for-deploying-lets-encrypt-certificates/)**
>
> Let’s Encrypt is an awesome open certificate authority that give digital certificates for free. The introduction of Let’s Encrypt had given ordinary folks like me the ability to host th…

Thanks for this tutorial!

---

<div class="post-metadata">

**Author:** ![Calby](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/c/8baadc/32.png) [@Calby](https://discourse.pi-hole.net/u/Calby)\
**Post date:** [December 11, 2017, 9:28am UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/3 "2017-12-11T09:28:37Z")

</div>

> [@WaLLy3K](#):
>
> This caused issues such as:
> 
> Browsing slowdowns on any site visited, as blocked content needed to time out (or load infinitely)  
> Web Browser errors, such as mismatched certificates  
> Operating system popups on macOS/iOS devices on every site containing blocked content

This is confusing, do you mean that if I'm using HTTPS this is some of the issues that I can samble up on?  
I don't get if you have been fixing this issues or if this issues will appear if you activate HTTPS?

---

<div class="post-metadata">

**Author:** ![WaLLy3K](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/wally3k/32/649_2.png) [@WaLLy3K](https://discourse.pi-hole.net/u/WaLLy3K)\
**Post date:** [December 11, 2017, 9:53am UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/4 "2017-12-11T09:53:05Z")

</div>

> do you mean that if I’m using HTTPS this is some of the issues that I can samble up on?

If you're enabling HTTPS without using the `$HTTP["host"] == "pihole.example.com"` conditional, then yes, you can run into those issues I've mentioned.

I've updated the post to better clarify that enabling HTTPS using this tutorial _will not_ cause the aforementioned issues 😄

---

<div class="post-metadata">

**Author:** ![Calby](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/c/8baadc/32.png) [@Calby](https://discourse.pi-hole.net/u/Calby)\
**Post date:** [December 11, 2017, 11:29am UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/5 "2017-12-11T11:29:51Z")

</div>

As the most of us are using Pi-hole inside our own network and not outside let's encrypt will not work good if your not opening the ports in the gateway.  
I should be good if you also writting a guide with a self signed cert 🙂

---

<div class="post-metadata">

**Author:** ![9a0bedc3](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/9/0ea827/32.png) [@9a0bedc3](https://discourse.pi-hole.net/u/9a0bedc3)\
**Post date:** [January 8, 2018, 2:44pm UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/6 "2018-01-08T14:44:03Z")

</div>

This works as expected. I do have a question though. Is there a way to mark the "secure" flag (as well as httponly) on the session cookie once you're serving the admin interface on https?

---

<div class="post-metadata">

**Author:** ![kyle95wm](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/kyle95wm/32/2900_2.png) [@kyle95wm](https://discourse.pi-hole.net/u/kyle95wm)\
**Post date:** [February 26, 2018, 2:54am UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/7 "2018-02-26T02:54:38Z")

</div>

I'm using an internal cert for this purpose. I had to comment out the "ca" line in the config since I had no file by that name. SSL works wonderfully.

---

<div class="post-metadata">

**Author:** ![Tntdruid](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/tntdruid/32/773_2.png) [@Tntdruid](https://discourse.pi-hole.net/u/Tntdruid)\
**Post date:** [March 24, 2018, 9:53am UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/8 "2018-03-24T09:53:28Z")

</div>

Thanks for the guide, works perfect 😃

---

<div class="post-metadata">

**Author:** ![timbo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/t/ad7895/32.png) [@timbo](https://discourse.pi-hole.net/u/timbo)\
**Post date:** [April 4, 2018, 9:37pm UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/9 "2018-04-04T21:37:51Z")

</div>

Has anyone been able to add to their lighttpd.conf a location for the let's encrypt files, like so:

$HTTP["url"] =~ "^/.well-known/" {  
server.document-root = "/var/www/letsencrypt/.well-known/"  
alias.url = ( "/.well-known/" =\> "/var/www/letsencrypt/.well-known/" )  
dir-listing.activate = "enable"  
}

Unfortunately, the "^/admin/" thing seems to cause an error 500 and require authorization, so the certbot fails to get a cert. Is there a way to make this work so that pihole can run and certbot renew certs in the future?

Thanks

---

<div class="post-metadata">

**Author:** ![Tntdruid](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/tntdruid/32/773_2.png) [@Tntdruid](https://discourse.pi-hole.net/u/Tntdruid)\
**Post date:** [April 4, 2018, 9:41pm UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/10 "2018-04-04T21:41:39Z")

</div>

I use [https://github.com/Neilpang/acme.sh](https://github.com/Neilpang/acme.sh) whit the DNS and not webroot

---

<div class="post-metadata">

**Author:** ![aks](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/3e96dc/32.png) [@aks](https://discourse.pi-hole.net/u/aks)\
**Post date:** [April 21, 2018, 1:45pm UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/11 "2018-04-21T13:45:09Z")

</div>

To automatically renew the certs, add the following cronjob:

47 5 \* \* \* root /root/certbot-auto renew --quiet --no-self-upgrade --renew-hook "cat $RENEWED\_LINEAGE/privkey.pem $RENEWED\_LINEAGE/cert.pem \> $RENEWED\_LINEAGE/combined.pem;systemctl reload-or-try-restart lighttpd"

---

<div class="post-metadata">

**Author:** ![p1r473](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@p1r473](https://discourse.pi-hole.net/u/p1r473)\
**Post date:** [May 5, 2018, 5:40am UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/12 "2018-05-05T05:40:05Z")

</div>

I have followed this whole guide, made the cert, used certbot, but I get stuck at the end.  
After I edit the lighttpd external.conf file, i can no longer access my /admin/ of my pihole, and I tried that with all the ports.  
Nuking that file fixes it for me.  
Yes, I replaced all the example.com with my own fqdm

---

<div class="post-metadata">

**Author:** ![DomoGijs](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/d/48db29/32.png) [@DomoGijs](https://discourse.pi-hole.net/u/DomoGijs)\
**Post date:** [May 16, 2018, 6:58pm UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/13 "2018-05-16T18:58:47Z")

</div>

Thanks for this solution. I need it because i want to acces an other raspberry pi with domoticz on my netwerk via https. But.... (and sorry i am new)

I did step 1 and 2 but in the beginning of step 3 i am stuck  
An error is shown if i copy and paste the first line of step 3:  
pi@raspberrypi:~ $ sudo cat /etc/letsencrypt/live/mplace.nl/privkey.pemcat: /etc/letsencrypt/live/myfqdn.nl/privkey.pem: No such file or directory

What am i doing wrong?

Greets Gijs

---

<div class="post-metadata">

**Author:** ![K-mikaZ](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/k-mikaz/32/3969_2.png) [@K-mikaZ](https://discourse.pi-hole.net/u/K-mikaZ)\
**Post date:** [June 2, 2018, 6:11pm UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/14 "2018-06-02T18:11:09Z")

</div>

And for those who would like a 'key-in-hand' script, I found that:  
[Let's Encrypt renewal for Lighttpd](https://github.com/galeone/letsencrypt-lighttpd)  
It turns as a service.

Edit:

Certbot is EFF's tool to obtain certs from Let's Encrypt and (optionally) auto-enable HTTPS on your server. It can also act as a client for any other CA that uses the ACME protocol.

> **[GitHub - certbot/certbot: Certbot is EFF's tool to obtain certs from Let's...](https://github.com/certbot/certbot#user-content-installation)**
>
> Certbot is EFF's tool to obtain certs from Let's Encrypt and (optionally) auto-enable HTTPS on your server. It can also act as a client for any other CA that uses the ACME protocol.

The easiest way to install Certbot is by visiting [certbot.eff.org](https://certbot.eff.org/), where you can find the correct installation instructions for many web server and OS combinations.

---

<div class="post-metadata">

**Author:** ![fidelito17](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/f/e56c9b/32.png) [@fidelito17](https://discourse.pi-hole.net/u/fidelito17)\
**Post date:** [June 26, 2018, 1:09am UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/15 "2018-06-26T01:09:01Z")

</div>

@WaLLy3K I ran into the following errors when following the instructions. I created a bug and it was suggested that a fix can be done by changing the instructions here. This is the bug I reported [Lighttpd starts with warning about unknown config-key. · Issue #2248 · pi-hole/pi-hole · GitHub](https://github.com/pi-hole/pi-hole/issues/2248)

The errors I am getting are:

(server.c.1295) WARNING: unknown config-key: alias.url (ignored)  
I am also getting unknown config-key for ssl.use-compression

The solution I found:

fixed it by mod\_alias in /etc/lighttpd/lighttpd.conf

so it looks like below:

server.modules = (  
"mod\_access",  
"mod\_accesslog",  
"mod\_auth",  
"mod\_expire",  
"mod\_compress",  
"mod\_redirect",  
"mod\_setenv",  
"mod\_rewrite",  
"mod\_alias"  
)

so to fix this I comment it out ssl.use-compression = "disable" on /etc/lighttpd/external.conf

I am running:

lighttpd -v  
lighttpd/1.4.45 (ssl) - a light and fast webserver  
Build-Date: Jan 14 2017 21:07:19

I made sure I was up to date with pihole and raspberry pi 3. I hope this helps anyone out there.

---

<div class="post-metadata">

**Author:** ![mitag](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mitag/32/3547_2.png) [@mitag](https://discourse.pi-hole.net/u/mitag)\
**Post date:** [July 15, 2018, 1:33pm UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/16 "2018-07-15T13:33:40Z")

</div>

I have done everything as in the example, only that I run my own root CA, which certifies me the certificates. I have been doing this for quite some time, with various services in my private network. This also works quite well with pihole, but I got a warning, does anyone know anything about it?

```auto
pi@rpi15:~ $ sudo service lighttpd status
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2018-07-15 13:21:00 CEST; 22s ago
  Process: 5200 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 5210 (lighttpd)
   CGroup: /system.slice/lighttpd.service
           ├─5210 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
           ├─5223 /usr/bin/php-cgi
           ├─5224 /usr/bin/php-cgi
           ├─5225 /usr/bin/php-cgi
           ├─5226 /usr/bin/php-cgi
           └─5227 /usr/bin/php-cgi

Jul 15 13:21:00 rpi15 systemd[1]: Starting Lighttpd Daemon...
Jul 15 13:21:00 rpi15 lighttpd[5200]: 2018-07-15 13:21:00: (server.c.1295) WARNING: unknown config-key: ssl.use-compression (ignored)
Jul 15 13:21:00 rpi15 systemd[1]: Started Lighttpd Daemon.

```

---

<div class="post-metadata">

**Author:** ![person51](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/person51/32/4248_2.png) [@person51](https://discourse.pi-hole.net/u/person51)\
**Post date:** [July 15, 2018, 2:52pm UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/17 "2018-07-15T14:52:05Z")

</div>

mitag - I get same error message. Search resulted with it's default since lighttpd 1.4.28  
Remove the ssl.use-compression = “disable” from /etc/lighttpd/external.conf and it will go away.

- @WaLLy3K  
Like mitag, I used my own CA - however, it fails to serve the page over SSL/TLS. I tried using @fidelito17 method and modifying/adding the “mod\_alias” to lighttpd.conf as well as commenting/removing the ssl.use-compression = “disable”

This site can’t be reached  
dns1.domain.com refused to connect.

Over Chrome (version 67.0.3396.99) hit F12 - Security :

Certificate - valid and trusted  
The connection to this site is using a valid, trusted server certificate issued by unknown name.

Resources - all served securely  
All resources on this page are served securely.

The certificates do not seem to be the issue. Not sure what I'm missing here.  
Please let me know if you have any ideas.

Steps taken :

1. Modifying the ["host"] section /etc/lighttpd/external.conf file to dns1.domain.com

- $HTTP["host"] == "dns1.domain.com" {

1. Pointing the ssl.pemfile and ssl.ca-file to the respective directory

- ssl.pemfile = "/home/pi/Downloads/dns1.pem"
- ssl.ca-file = "/home/pi/Downloads/root.pem"

1. Note - have tried RSA and ECDSA based CA's, and tried changing the ssl.cipher-list; always shows the error of refusing to connect. The FQDN does have an A record, and the certificate does have the SAN for the FQDN. Created the dns1.pem via cat server.crt server.key \> dns1.pem

Permissions :  
pi@dns1:~/Downloads$ ls -l  
total 16  
-rw-r--r-- 1 pi pi 8387 Jul 15 08:46 dns1.pem  
-rw-r--r-- 1 pi pi 1838 Jul 15 07:46 root.pem

lighttpd -v : lighttpd/1.4.45 (ssl) - a light and fast webserver Build-Date: Jan 14 2017 21:07:19

openssl version : OpenSSL 1.1.0f 25 May 2017

Raspbian version : Linux version 4.14.52-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1123 SMP Wed Jun 27 17:35:49 BST 2018

Edit / Update : The configuration was correct (certs, external.conf, etc) - originally was using Raspbian with Desktop, swapped over to the Stretch Lite and it worked right away. Found some blurb on reddit where pihole didn't cooperate with the desktop version. While I didn't see any issue with the DNS functionality on it, it looks like it prevented the TLS to the WebUI. Figured if someone else comes across this, can be used as a reference.

---

<div class="post-metadata">

**Author:** ![mitag](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mitag/32/3547_2.png) [@mitag](https://discourse.pi-hole.net/u/mitag)\
**Post date:** [July 15, 2018, 6:03pm UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/18 "2018-07-15T18:03:49Z")

</div>

Yes, that helped, thank you!

---

<div class="post-metadata">

**Author:** ![Gertjan\_K](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/g/f14d63/32.png) [@Gertjan\_K](https://discourse.pi-hole.net/u/Gertjan_K)\
**Post date:** [July 23, 2018, 12:25pm UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/19 "2018-07-23T12:25:08Z")

</div>

Hi,

I have followed the tutorial provided by @WaLLy3K, and SSL works perfectly for the Web Interface of Pi-hole. However, I am experiencing the following stated issues:

> [@WaLLy3K](#):
>
> - Browsing slowdowns on any site visited, as blocked content needed to time out (or load infinitely)
> - Web Browser errors, such as mismatched certificates

The slowdowns are only occuring on a couple of websites, but according to the post this shouldn't happen. And whenever I try to reach a blocked domain over HTTPS I don't see the Pi-hole error page, but see the following error:

 ![sslerror](https://discourse.pi-hole.net/uploads/default/original/2X/9/9cc73620f903a9d7e4c4e97359e1be4f5559b878.JPG)  
Chrome presents error message ERR\_SSL\_UNRECOGNIZED\_NAME\_ALERT.

According to the following post:

> [@WaLLy3K](#):
>
> If you’re enabling HTTPS without using the `$HTTP["host"] == "pihole.example.com"` conditional, then yes, you can run into those issues I’ve mentioned.

I don't think this is the expected behaviour. Is there a way to fix this?  
And yes, I replaced all the pihole.example.com url's with my own fqdn.

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Mcat12](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcat12/32/20_2.png) [@Mcat12](https://discourse.pi-hole.net/u/Mcat12)\
**Post date:** [July 25, 2018, 12:59am UTC](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771/20 "2018-07-25T00:59:03Z")

</div>

Because the certificate is only for your domain, it can not be used for another domain. Trying to use it for another domain causes that error.

[Next page](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771.md?page=2)
