An Open Access Peon

09 June 2010

Enabling support for HTTPS in wkhtmltopdf

If you get the following error when attempting to web thumbshot an HTTPS-based site with wkhtmltopdf in Fedora Core 13:

QSslSocket: cannot call unresolved function SSLv3_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
QSslSocket: cannot call unresolved function ERR_error_string


You need to add some additional library links. As root do:

cd /usr/lib64
ln -s libssl.so.10 libssl.so
cd /lib64
ln -s libcrypto.so.1.0.0 libcrypto.so


Hopefully that will fix the problem!

NB I resolved this by using strace to find out where wkhtmltopdf was attempting to find libcrypto and libssl (the problem being the static wkhtmltopdf build was looking for different versions than are installed on FC13):

strace wkhtmltopdf https://mail.google.com/ gmail.pdf 2>&1 | less

4 Comments:

  • Thanks, that solved my problem.

    By Blogger Phil Ahern, at 11:24 am  

  • Just install openssl-devel

    By Anonymous Anonymous, at 11:40 am  

  • Thanks, this worked fantastic on CentOS 6.3

    The only difference (for me) was that both libcrypto and libssl were in /usr/lib64/

    By Anonymous A WkHtmlToPdf user, at 1:50 am  

  • on debian you should install the libssl-dev !!!

    By Anonymous rassloff, at 12:45 pm  

Post a Comment

<< Home