Hi,
many thanks for your message. Lighttpd is perfectly fine for using HTTPS, Do you used dietpi-letsencrypt to create your certificate? I created following guide quite a while back. It was intended for Nextcloud but it should fit for WP as well.
https://dietpi.com/forum/t/how-can-i-secure-connection-to-nextcloud/3820/4