# Add SSL to Your Pi-hole WebUI on VM – A Simple Script for New Users

**URL:** <https://discourse.pi-hole.net/t/add-ssl-to-your-pi-hole-webui-on-vm-a-simple-script-for-new-users/74948>\
**Category:** Help\
**Created:** [January 4, 2025, 3:40pm UTC](https://discourse.pi-hole.net/t/add-ssl-to-your-pi-hole-webui-on-vm-a-simple-script-for-new-users/74948 "2025-01-04T15:40:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![IvanoffM](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/i/f07891/32.png) [@IvanoffM](https://discourse.pi-hole.net/u/IvanoffM)\
**Post date:** [January 4, 2025, 3:40pm UTC](https://discourse.pi-hole.net/t/add-ssl-to-your-pi-hole-webui-on-vm-a-simple-script-for-new-users/74948/1 "2025-01-04T15:40:04Z")

</div>

Hi everyone,

Apologies if this isn’t the perfect place for this topic, but I wanted to share something that might help others!

As a new Pi-hole user running it on a VM, I struggled to add SSL to the WebUI. After spending quite a bit of time reading through discussions here and testing different approaches, I decided to simplify the process. I created a straightforward script to enable SSL for your Pi-hole instance on a VM.

It worked for my instance, hopefully does for yours too.

I hope this can save someone the hassle. If you’re in a similar situation, feel free to give it a try. Feedback is always welcome!

Here is the script:

> **[GitHub - IvanoffM/Pi-Hole-SSL: Simple script to add SSL to your Pi-Hole instance](https://github.com/IvanoffM/Pi-Hole-SSL)**
>
> Simple script to add SSL to your Pi-Hole instance

---

<div class="post-metadata">

**Author:** ![rdwebdesign](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/rdwebdesign/32/51363_2.png) [@rdwebdesign](https://discourse.pi-hole.net/u/rdwebdesign)\
**Post date:** [January 4, 2025, 4:19pm UTC](https://discourse.pi-hole.net/t/add-ssl-to-your-pi-hole-webui-on-vm-a-simple-script-for-new-users/74948/2 "2025-01-04T16:19:31Z")

</div>

Just a note:

Pi-hole v6 web interface will have [HTTPS support](https://discourse.pi-hole.net/t/pi-hole-v6-beta-testing/65413#SSL) and it will also provide its own self-signed certificate if none is provided.

---

<div class="post-metadata">

**Author:** ![IvanoffM](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/i/f07891/32.png) [@IvanoffM](https://discourse.pi-hole.net/u/IvanoffM)\
**Post date:** [January 4, 2025, 4:30pm UTC](https://discourse.pi-hole.net/t/add-ssl-to-your-pi-hole-webui-on-vm-a-simple-script-for-new-users/74948/3 "2025-01-04T16:30:41Z")

</div>

Very nice!

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [January 25, 2025, 4:31pm UTC](https://discourse.pi-hole.net/t/add-ssl-to-your-pi-hole-webui-on-vm-a-simple-script-for-new-users/74948/4 "2025-01-25T16:31:11Z")

</div>

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