[solved] Problems with running the Let's Encrypt challenge and SSL Certificate

Hi everyone,

I am trying to install jitsi to be reachable at the subdomain meet.example.com on my Debian11 server and I have a few issues.

I am trying to install Jitsi-meet using apt-get install jitsi-meet.
If I ask the installer to use Let’s Encrypt,
a) if I put a valid email address, it fails the challenge, although certbot --apache does not fail the challenge,
b) if I do not put the email address, the challenge does not start at all. I then need to launch /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh without email address, and it passes the challenge.

But when I try systemctl reload apache2 I get this error:

Apr 03 13:49:07 hostname.example.com apachectl[29020]: AH00526: Syntax error on line 15 of /etc/apache2/sites-enabled/meet.example.com.co>
Apr 03 13:49:07 hostname.example.com apachectl[29020]: SSLCertificateFile: file ‘/etc/jitsi/meet/meet.example.com.crt’ does not exist or >
Apr 03 13:49:07 hostname.example.com apachectl[29017]: Action ‘graceful’ failed.
Apr 03 13:49:07 hostname.example.com apachectl[29017]: The Apache error log may have more information.
Apr 03 13:49:07 hostname.example.com systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Apr 03 13:49:07 hostname.example.com systemd[1]: Reload failed for The Apache HTTP Server.

However /etc/jitsi/meet/meet.example.com.crt exists.

I am stuck. What is not working?

File permissions, I guess.

I used 644 rights and apache user is the owner, but it still does not work.

I reinstalled using certificate and key generated by certbot and it works fine.