# Let's Encrypt for IPv6 only websites

**URL:** https://dietpi.com/forum/t/lets-encrypt-for-ipv6-only-websites/4334
**Category:** Troubleshooting
**Created:** [30 July 2020 01:01 UTC](https://dietpi.com/forum/t/lets-encrypt-for-ipv6-only-websites/4334 "2020-07-30T01:01:43Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![anon58719458](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/f1d935/32.png) [@anon58719458](https://dietpi.com/forum/u/anon58719458)
#### Post date: [30 July 2020 01:01 UTC](https://dietpi.com/forum/t/lets-encrypt-for-ipv6-only-websites/4334/1 "2020-07-30T01:01:43Z")

</div>

Hey!

I have the following scenario:

My Raspberry Pi is externally reachable via IPv6, and IPv6 only. AAAA records are set and get updated automatically, my router is configured to let traffic on ports 80 and 443 through. Let’s Encrypt handles the certificate for my domain, the site itself is served via lighttpd.  
Every installation was done via dietpi-software, configuration through dietpi-letsencrypt.

If I try to reach the domain over HTTP on port 80 everything works fine, HTTPS (port 443) on the other hand gets blocked. _lsof -i -P_ shows me that lighttpd is listening on port 80 through IPv4 and IPv6 but only through IPv4 on port 443.  
A quick look at the configuration dietpi-letsencrypt created (_/etc/lighttpd/conf/enabled/letsencrypt.conf_) showed that the server was listening through IPv4 only:

```nohighlight
$SERVER["socket"] == ":443" { ...

```

Changing this to

```nohighlight
$SERVER["socket"] == "[::]:443" { ...

```

made my site reachable from outside my home network and fixed the problem, for now.  
I hope this configuration doesn’t get auto-generated each time the certificate is renewed.

Nevertheless, I don’t know how many people would affect this problem, but it took me a while to figure it out, so perhaps I can help people facing the same problem.  
I am not that confident on GitHub, otherwise I would have created a pull-request for a change that respects a IPv6-only setup.

I hope someone of you can do this step, assuming that my text here wasn’t that unclear.  
Thank you very much and stay safe all!

Bonsailinse

---

_[View the full topic](https://dietpi.com/forum/t/lets-encrypt-for-ipv6-only-websites/4334)._
