I want to use libfreoffice to convert html file to pdf. I execeute command like below.
Because img src is refere to domain with untrusted certificate than image isn’t convert properly. The problem doesn’t occur for trusted certificate. For domain https://test.com I have self-signed certificate - there is no possibility use signed certificate in this case.
/opt/libreoffice6.3/program/soffice.bin --headless --norestore --writer --convert-to pdf sample.html
There is html file which I try convert to pdf:
<!DOCTYPE html> <html> <title>Page Title</title> <body> This is just a simple Hello World <img src='https://test.com/test.img'> </body> </html>
I found that LibreOffice use nss. On server where LibreOffice is installed I found following nss database:
Each of this database is empty. How LibreOffice verifiy signed certificate? Which store is used?
I tried import my self-signed certificate to this database but html still isn’t properly converted.
What should I do to allow libfreoffice use my self-signed certificate or is it possible tell libfreoffice to ignore untrusted certificate? I use libfreoffice on Centos7 withouth GUI.
Thank you in advance.