SSL: couldn't read X509 certificate from pem file lighttpd

Solution 1:

For me, putting a new line in between the key and crt in the PEM file solved this.

cat my_server.key <(echo) my_server.crt > my_server.pem