Missing images in PDF generated by LibreOffice

LibreOffice cannot fetch a file from a server which is configured with HTTPs.

I’m using these steps:

  1. On Windows 7, I’m configuring a local Apache Tomcat server with HTTPs (created a self-signed certificate, added it to Tomcat’s keystore), place a HTML document on it, which contains img elements which refer to images on the server.

  2. I start OpenOffice on the command line in “headless” mode, which listens on port 8100:
    soffice -headless -accept=“socket,host=127.0.0.1,port=8100;urp;” -nofirststartwizard

  3. When I issue OpenOffice to connect to the server and convert the HTML document to PDF, it creates the PDF, but the images are missing.

If the server is not configured with HTTPs, OpenOffice can fetch the images and then place those images into the generated PDF.

I assume OpenOffice considers the local server’s certificate untrusted, and will refuse to connect to it.

I’m using a Windows system, and according to this wiki article, OpenOffice will use certificates from the personal key store.
https://wiki.openoffice.org/wiki/Certificate_Detection

I added the certificate to the personal key store, but the issue still persists.

Any help is much appreciated!

Embed the images instead of linking them.