View Single Post
Old 12-17-2018, 11:19 AM   #7
dator
Member
dator began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jul 2018
Device: Kobo Aura HD
Quote:
Originally Posted by yourrable View Post
Do you have VPS, if yes install certbot. Then generate certificate using certbot. Most of time, it will be done by running simple command, `$ certbot`.

Your certificate and keyfile will be located at `/etc/letsencrypt/live/{your domain name here}/{fullchain.pem & privkey.pem}. Give them necessary read permissions and use it as follow,

`/opt/calibre/calibre-server --enable-auth --ssl-keyfile /etc/letsencrypt/live/{your domain here}/privkey.pem --ssl-certfile /etc/letsencrypt/live/{your domain here}/fullchain.pem --log=/var/log/calibre-server.log --port=5770 --daemonize "library path"` and you're good to go.

Access your server with `https://ip:port`

Hope it helps.

P.S. Sorry for my bad English.
Thanks for your post. I tired it but got this error

Code:
Error while running apache2ctl graceful.
httpd not running, trying to start
Action 'graceful' failed.
The Apache error log may have more information.

(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open log
dator is offline   Reply With Quote