I'm unable to give you a specific reply because I've never tried to set up calibre server, but I found what seems like a great guide with all the steps (including starting the server and SSL certificates) online, I hope it can give you some inspiration, if you haven't already read it:
https://www.digitalocean.com/communi...n-ubuntu-18-04