# Lighttpd fails after renewing letsencrypt

**URL:** https://dietpi.com/forum/t/lighttpd-fails-after-renewing-letsencrypt/17510
**Category:** Troubleshooting
**Created:** [30 July 2023 13:45 UTC](https://dietpi.com/forum/t/lighttpd-fails-after-renewing-letsencrypt/17510 "2023-07-30T13:45:57Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [30 July 2023 19:13 UTC](https://dietpi.com/forum/t/lighttpd-fails-after-renewing-letsencrypt/17510/6 "2023-07-30T19:13:42Z")

</div>

> [@Lelo](#):
>
> `Error: duplicate array-key: Options. Please get rid of the duplicate entry.`

This is because of my PR, we changed some things in `/etc/lighttpd/conf-available/50-dietpi-https.conf`, but I made a mistake and now there are two `options` lines, which lighttpd does not like.  
We can delete the “sessionticket” option, recommendation is to use only the `-ServerPreference`, see: [https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs\_SSL#Perfect-Forward-Secrecy-PFS](https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_SSL#Perfect-Forward-Secrecy-PFS).

Note also, that there are two entries in this file, on for IPv4, around line 16, and one for IPv6 around line 33.

The problem now is, you can change this lines in `/etc/lighttpd/conf-available/50-dietpi-https.conf` but when you run `dietpi-letsencrypt` the file gets newly generated by the script, so we have to edit the script itself for now.

# workaround:

```auto
sed -i '/"Options" => "-SessionTicket",/d' /boot/dietpi/dietpi-letsencrypt
sed -i '/"Options" => "-SessionTicket",/d' /etc/lighttpd/conf-available/50-dietpi-https.conf

```

After that you can re-run `dietpi-letsencrypt`.

edit: [PR is out](https://github.com/MichaIng/DietPi/pull/6517), apologies for the inconvenience

---

_[View the full topic](https://dietpi.com/forum/t/lighttpd-fails-after-renewing-letsencrypt/17510)._
