作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我对 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
最佳答案
检查 open-ssl-devel,如果存在则将其删除。
关于ruby-on-rails - QSslSocket : cannot resolve SSLv3_client_method RAILS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56808504/
我是一名优秀的程序员,十分优秀!