cat certificate.crt ca_bundle.crt > fullchain.crt (i have ssl keys from zerossl)
then
/etc/systemd/system/calibre-server.service
Code:
[Unit]
Description=Calibre Content server
After=network.target
[Service]
Type=simple
User=pi
Group=pi
ExecStart=/usr/bin/sudo /opt/calibre/calibre-server --ssl-certfile "/etc/ssl/fullchain.crt" --ssl-keyfile "/etc/ssl/private/private.key" "/mnt/RPI_EXT4-1/Calibre-RPI_NTFS3"
#--ssl-certfile "/etc/ssl/certificate.crt" --ssl-keyfile "/etc/ssl/private/private.key" "/mnt/BPI/Calibre"
[Install]
WantedBy=multi-user.target
I run Calibre server on RaspberryPI, so user/group is pi/pi
Unfortunatelly I dont know how to make https running on port 443, I tried to add
--port 443 but w/o success:-( so it works on port 8080)