You cannot, if you want to do this kind of thing, you should use nginx and reverse proxy to the calibre server. Then you SSL setup can be in nginx using standrd lets encrypt tooling. See the reverse proxy section in
https://manual.calibre-ebook.com/server.html