![]() |
#1 |
Zealot
![]() Posts: 145
Karma: 12
Join Date: Jun 2017
Location: Australia
Device: Mac Pro 2013 & Mini 2018, iPad Mini 4, iPhone 11, iBooks, K4Mac/PC
|
![]()
So I have managed to set up my content server over the internet with passwords as per the instructions HERE. I had to enable port forwarding on my router (iiNet) and also enable port forwarding with my provider and then everything was fine.
It mentions in the calibre manual that you should enable HTTPS on the content server for maximum security. How do you do this? I know I need to put something into Preferences > Sharing over the net > Advanced but not sure where and how to get the path to the HTTPS certificate. I'm using Chrome as my browser. Any help with this would be appreciated. Thanks, Inukami ![]() |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
You will need to get a certificate first--this is the hard part. Start here. Now you are on your own.
You will probably want to use the Certbot ACME client. bernie Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Zealot
![]() Posts: 145
Karma: 12
Join Date: Jun 2017
Location: Australia
Device: Mac Pro 2013 & Mini 2018, iPad Mini 4, iPhone 11, iBooks, K4Mac/PC
|
Quote:
Apache & Ubuntu? Inukami |
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Any linux distro is fine. I would recommend nginx rather than apache for th eserver (a bit easier to configure). And see https://manual.calibre-ebook.com/server.html for how to integrate the calibre server into nginx.
|
![]() |
![]() |
![]() |
#5 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Aug 2018
Location: New Jersey, USA
Device: iPad
|
I've been trying to do this myself, but I'm strictly using command line tools and am experiencing some trouble. I have my systemd unit file and my certificate from letsencrypt. My unit file is below.
Code:
1 [Unit] 2 Description=Calibre Content Server 3 After=network.target 4 5 [Service] 6 Type=simple 7 PIDFile=/var/run/calibre-server.pid 8 User=jlosito 9 Group=jlosito 10 ExecStart=/opt/calibre/calibre-server \ 11 --port 8081 \ 12 --userdb /srv/calibre/users.sqlite \ 13 --enable-auth \ 14 --access-log /var/log/calibre/access-log \ 15 --log /var/log/calibre/log \ 16 "/run/media/jlosito/7022f255-e61e-43f3-a5a9-216d5559fc84/Calibre Library" 17 18 [Install] 19 WantedBy=multi-user.target Code:
16 --ssl-keyfile /etc/letsencrypt/live/losito.ddns.net/privkey.pem \ 17 --ssl-certfile /etc/letsencrypt/live/losito.ddns.net/fullchain.pem \ Quote:
![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
What OS and version? Try putting the certfile first: Code:
--ssl-certfile /etc/letsencrypt/live/losito.ddns.net/fullchain.pem \ --ssl-keyfile /etc/letsencrypt/live/losito.ddns.net/privkey.pem \ Code:
--ssl-keyfile /opt/calibre/fullchain.pem \ --ssl-certfile/opt/calibre/privkey.pem \ bernie Last edited by gbm; 08-15-2018 at 10:00 AM. |
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That error indicates youa re sending an http request to an http server. Use a URL of the form
https://server:port Last edited by theducks; 08-16-2018 at 04:48 AM. |
![]() |
![]() |
![]() |
#8 | ||
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Aug 2018
Location: New Jersey, USA
Device: iPad
|
Below is my OS.
Code:
$ lsb_release --all LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.5.1804 (Core) Release: 7.5.1804 Codename: Core Code:
$ calibre-server --version calibre-server (calibre 3.28) Quote:
Quote:
So I think it's somewhat wanted to use a proxy using Apache or Nginx out of convenience. As per Goyal's advice. I think I'm going to try to use Nginx. Furthermore, I want to thank you all for replying and maintaining this project. I absolutely love it. Last edited by jlosito; 08-18-2018 at 09:38 AM. |
||
![]() |
![]() |
![]() |
#9 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Nov 2018
Device: tablet
|
Quote:
I managed to connect from another terminal in the LAN to the server via https. So it works with the certificate I created with openssl: well. However, the error it indicates is abstruse! It is not absolutely clear where it indicates to provide https instead of http. Anyway well so. The only test I still can't solve is the connection to the Calibre server via the Internet. While giving the command https://my public IP: port firefox replay: Unable to connect. anyway thanks Kovidgoyal. sonia P.S. Maybe it is necessary to install Nginx to connect via the internet? Last edited by soniabu; 12-03-2018 at 05:08 PM. |
|
![]() |
![]() |
![]() |
#10 |
Member
![]() Posts: 12
Karma: 10
Join Date: Nov 2018
Device: tablet
|
Calibre Web Server
Friends I can not connect from the internet to the web content of Calibre.
I always get this error when I enter: https://89.30.10.190:9090 Secure Connection Failed The connection to 89.30.10.190 was interrupted while the page was loading. The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. Please contact the web site owners to inform them of this problem. try again but the strange thing is that it does not allow me to skip the notification - with the adwanced button, that would allow me to confirm the exception as happens with the use of a LAN terminal. Can someone suggest some solution to me? thx sonia Last edited by soniabu; 12-05-2018 at 02:18 PM. |
![]() |
![]() |
![]() |
#11 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
e.g Firefox. https://wiki.wmtransfer.com/projects...ozilla_Firefox bernie |
|
![]() |
![]() |
![]() |
#12 |
Member
![]() Posts: 12
Karma: 10
Join Date: Nov 2018
Device: tablet
|
thx gmb, Ill try.
sonia |
![]() |
![]() |
![]() |
#13 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Nov 2018
Device: tablet
|
Quote:
was already included in firefox thx again but nothing to do ![]() I have a doubt. To perform the test on the my public ip address, I login with the same PC on which I have the content server calibre. Can all this be done? I mean: can I access my public address from the same PC that's reachable from that public address? sonia Last edited by soniabu; 12-05-2018 at 04:29 PM. |
|
![]() |
![]() |
![]() |
#14 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Mar 2020
Device: none
|
Quote:
In a rasberrypi with raspbian I have installed and running the server of caliber as a Systend demon, but I can only access by http, I would like to know if there is any way to access by https, without having to install a web server, because that is beyond my knowledge... Can I get some free certificate and use it with the caliber server? without anything else, how could I do it? Thank you for your help. Translated with www.DeepL.com/Translator (free version) |
|
![]() |
![]() |
![]() |
#15 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You get the https certificates and then pass the path for them to the calibre server via the command line options.
|
![]() |
![]() |
![]() |
Tags |
calibre, content server, https |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there any way to enable 'report content error' and 'share' option on ebook? | VósMicêSama | ePub | 13 | 11-08-2016 05:34 PM |
Content server on ubuntu 12.04 headless server ImageMagick: libltdl.so.7 | Cool Javelin | Calibre | 5 | 04-08-2015 02:20 AM |
Calibre Content Server and Windows Home Server 2011 | HughMcC | Calibre | 8 | 10-01-2014 07:26 AM |
ebook-convert “Enable sharing of book content” | laurent68 | Conversion | 1 | 09-23-2014 07:08 AM |
500 Internal Server Error accessing content server Calibre 0.8.8 | DaddyO57 | Calibre | 1 | 07-20-2012 06:08 PM |