QSslSocket:无法解析SSLv3_client_method RAILS

时间:2019-06-28 14:10:35

标签: ruby-on-rails docker wkhtmltopdf

我对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

1 个答案:

答案 0 :(得分:0)

检查open-ssl-devel(如果存在)将其删除。