|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Member
![]() Posts: 17
Karma: 10
Join Date: Apr 2013
Device: lots of, frequently changing
|
Connecting calibredb to running content server using SSL (self signed)
Hello, I run a content server in docker with
Code:
/usr/bin/calibre-server --port 8081 \ --enable-local-write --enable-auth --userdb /ebook/server-users.sqlite \ --ssl-certfile /config/ssl/cert.pem --ssl-keyfile /config/ssl/cert.key \ --url-prefix /ebook /ebook/eBooks But when I try to connect from docker shell with: Code:
calibredb --with-library https://localhost:8081/#eBooks \ --username Huh --password Buh list --limit 10 I have no idea how to provide calibredb with the certificate it seems to miss, any one has? Thanks. |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,626
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
caliredb uses python which in turn uses openssl. There are env vars that control where openssl gets its certs from. Presumably you could use those, though havent actually tried.
|
|
|
|
|
|
#3 |
|
Member
![]() Posts: 17
Karma: 10
Join Date: Apr 2013
Device: lots of, frequently changing
|
OK, that's it - THANK YOU.
If someone is interested, using docker with linuxserver's calibre Code:
# Get all info on domain: echo | openssl s_client -servername 127.0.0.1 -connect 127.0.0.1:8081 # Up, running, only certifacate missing # Any environment? env | grep -i ssl # None for me # SSL Config Directory openssl version -d # is /usr/lib/ssl, there # /usr/lib/ssl/certs -> /etc/ssl/certs # get the subject hash of the cerficate openssl x509 -subject_hash -in myRoot.crt | head -1 # copy it, "normally" file with name, symlink with hash, easy going here: cp myRoot.crt /etc/ssl/certs/[subject hash].0 # Check again with openssl, calibredb connects flawlessly # I mapped the file in my compose.yaml |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SSL when running Calibre as local server | passegua | Server | 0 | 01-07-2021 10:57 AM |
| calibredb does not work with content server running (content server is using --enable | Irvin | Server | 3 | 01-08-2019 03:47 AM |
| Accessing Calibre running SSL via HTTP breaks the server | Naenyn | Calibre | 12 | 03-19-2018 12:47 AM |
| How to use SSL on Mac running Server | paul55391 | Devices | 3 | 08-13-2017 11:18 PM |
| calibredb cannot add with content server running | apiontek | Calibre | 10 | 08-04-2017 05:50 AM |