我有一个关于wkhtmltopdf的问题。我在docker中这样使用wkhtmltopdf。
wkhtmltopdf https://www.google.com google.pdf然后有一些类似下面这样的错误
QSslSocket: cannot resolve CRYPTO_num_locks ] 10%
QSslSocket: cannot resolve CRYPTO_set_id_callback
QSslSocket: cannot resolve CRYPTO_set_locking_callback
QSslSocket: cannot resolve sk_free
QSslSocket: cannot resolve sk_num
QSslSocket: cannot resolve sk_pop_free
QSslSocket: cannot resolve sk_value
QSslSocket: cannot resolve SSL_library_init
QSslSocket: cannot resolve SSL_load_error_strings
QSslSocket: cannot resolve SSLv3_client_method
QSslSocket: cannot resolve SSLv23_client_method
QSslSocket: cannot resolve SSLv3_server_method
QSslSocket: cannot resolve SSLv23_server_method
QSslSocket: cannot resolve X509_STORE_CTX_get_chain
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
QSslSocket: cannot resolve SSLeay
QSslSocket: cannot call unresolved function CRYPTO_num_locks
QSslSocket: cannot call unresolved function CRYPTO_set_id_callback
QSslSocket: cannot call unresolved function CRYPTO_set_locking_callback
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function sk_num
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_library_init
Error: Failed loading page https://www.google.com (sometimes it will work just to ignore this error with --load-error-handling ignore)
Exit with code 1 due to network error: UnknownNetworkError
QSslSocket: cannot call unresolved function CRYPTO_num_locks
QSslSocket: cannot call unresolved function CRYPTO_set_id_callback
QSslSocket: cannot call unresolved function CRYPTO_set_locking_callback然后我写了一些stackoverflow和github的讨论。然后我通过以下命令安装了libssl1.0-dev库
apt-get install -y libssl1.0-dev然后我的错误变得比以前更少了
Loading pages (1/6)
QSslSocket: cannot resolve SSLv3_client_method ] 10%
QSslSocket: cannot resolve SSLv3_server_method
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done 但是为什么还有这样的错误呢?
QSslSocket: cannot resolve SSLv3_client_method ] 10%我看了一些github和stackoverflow以及github的讨论,它必须通过安装libssl库来解决。
这是安全错误吗?或者有一些解决方案?我需要你的帮助。谢谢
这是我的docker内核
Linux 3c28a7f3c2e6 4.9.125-linuxkit #1 SMP Fri Sep 7 08:20:28 UTC 2018 x86_64 GNU/Linux我的wkhtmltopdf版本
wkhtmltopdf 0.12.4 (with patched qt)这是我的openssl版本(我仍然不明白它是如何链接到open ssl的,但我会让你知道我的openssl版本,哈哈哈)
OpenSSL 1.1.0j 20 Nov 2018发布于 2020-02-28 23:04:42
检查open-ssl-devel,如果存在,请将其删除。
https://stackoverflow.com/questions/56808504
复制相似问题