createPDF SslHandshakeFailedError

4 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: September 15   (RSS)

By ht1080z - September 14

Hi,

After a normal year and no changes on the server suddenly I'm getting:

Exit with code 1 due to network error: SslHandshakeFailedError
Error executing wkhtmltopdf! (Exit code: 1)

using parameters:

$GLOBALS['CREATEPDF_CUSTOM_SWITCHES'] = '--disable-smart-shrinking --page-size A3 --orientation Landscape --margin-left 0 --margin-right 0 --margin-top 0 --margin-bottom 0';

Any help would appreciated,
Karls

By daniel - September 14

Hey Karls,

From what I can find, this error has more to do with SSL configuration/setup than the PDF generation itself. This might be something related to the local SSL certificate, or the SSL certificate of any of the assets (images, stylesheets, javascript, etc.) being used in the HTML being converted by the plugin.

The first thing I would try is running the Test Server Requirements action from the plugins page to potentially narrow down if this is an issue on the server, or with something in the PDF you're trying to create. If all the tests pass, then I would start looking at the assets in the HTML you're converting to see if any come from other domains which may be having SSL issues.

I hope this helps point you in the right direction - let me know if you have any other questions!

Thanks,

Daniel
Technical Lead
interactivetools.com

By ht1080z - September 15 - edited: September 15

Hi Daniel,

Thank you for your reply.

Unfortunately I didn't find anything for solution yet.

The server req. is fine, the plugin is working from the back-end for every examples.

The problem is popup when I use URL as attachment.

there is not many related help on the net. I purchased a new ssl cert. (by trying to not use self-signed ssl) but no luck.

How can I get the latest wkhtmltopdf-0.12.6-1.centos7.x86_64 file? On the official website there is only rpm file.

Thanks again,
Karls