QSslSocket Issue
The following issue raised while creating pdf using these libraries wkhtmltopdf_binary, wkhtmltopdf, PdfKit.
Failed to execute: ["/usr/local/rvm/gems/ruby-2.3.1/gems/wkhtmltopdf-binary-0.12.3/bin/wkhtmltopdf", "-q", "--encoding", "utf8", "--viewport-size", "1280x1024", "--page-size", "Letter", "--margin-top", "15", "--margin-bottom", "15", "--margin-left", "5", "--margin-right", "5", "--header-font-name", "Helvetica, Arial, sans-serif", "--header-font-size", "5", "--header-spacing", "8", "--header-html", "file:////tmp/wicked_header_pdf20200429-24271-1cw3mrj.html", "--footer-html", "file:////tmp/wicked_footer_pdf20200429-24271-rktpmp.html", "file:////tmp/wicked_pdf20200429-24271-1d1b0t3.html", "/tmp/wicked_pdf_generated_file20200429-24271-14752j1.pdf"] Error: PDF could not be generated! Command Error: QSslSocket: cannot resolve CRYPTO_num_locks 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 SSLv23_client_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 unsupported date format detected unsupported date format detected
Reason for issues:
The above issue may be occurred for any one the following reasons.
- Recently you may be downgraded some libraries or removed it.
- You might be tried to install the latest version of ruby through rvm, but failed to finish the installation.
- Supported libraries not installed
Solution:
Solution is turned out to be simple and straight forward. It is clearly understandable based on the error message, that it is related to SSL. See the error message shows “QSslSocket: cannot resolve”
To fix this issue you have to check that openssl library is installed or not.
sudo dnf install openssl-devel
If the issue still exists, then install the below library
You have to remove the openssl-devel and install compat-openssl10-devel.
sudo dnf remove openssl-devel
sudo dnf install compat-openssl10-devel
Now the issue should be resolved.
If you still facing any issues or do you have resolved through any other workarounds, post your comments.
Happy coding! Cheers!
The self education industry is a $355 Million per day industry and is expected to TRIPLE in the next 5 years! And with the right strategy this could be your opportunity to:
Get in early before it is oversaturated.
Help others go faster while you get paid
Fix a broken system
Make an impact on the world
Get paid for a skill, hobby, passion or expertise you already have (or get paid from someone else’s)
And Tony Robbins, Russell Brunson and Dean Graziosi are finally going to show YOU how to take advantage of it…
(Now if you don’t already know who these 3 guys are then you’ll want to listen up!! They’ve impacted millions of lives and have generated billions of dollars)
Look, if you’ve ever thought about (or even if you never thought about) getting paid for something you know (like a passion or a skill)… or even getting paid from what others know, then you have to attend.
This is one of the fastest growing industries online and in all areas of the world.
And for the first time ever they’re doing a webclass training on how to extract your wisdom (or somebody else’s) and get other people to pay you for it!
You can save your spot here (and when you do register, you’re immediately going to get a brand new, never before seen training from Tony and Dean. No one else will ever get a chance to see this rare training except for us).
kbbmint.com
After hearing what they’re teaching, I truly believe this is the #1 way to make a massive income, make a massive impact on the world and leave a legacy!
And here’s just a fraction of what you’ll learn this week:
The mostly hidden $129 Billion dollar market and how you can make a massive impact and leave a legacy by profiting from it.
The KBB Triangle: The 3 ways to profit (whether you’re an expert with a thriving business, just getting started, or even if you’re at complete rock bottom)
The framework to profit from what you (or someone else) already knows – or by creating community and bringing people together.
Plus you’ll even be able to ask them questions when they do Q&A at the end of the training. (Chat is limited so show up early).
There’s no other time where you’re going to have this opportunity. So BE THERE! Because if you’re not going to make a shift in your life now, then when? And if not with these guys, then let me ask with who?
This is your rare chance to learn from 3 people who started from nothing and went on to generate billions of dollars and build massive companies.
Spots are filling up faster than they ever have, so you need to hurry and go here to save your spot
https://kbbmint.com
Register now and I’ll see you there this week – Plus they did a few brand new “pre-event” trainings that only those who register get access to.
Talk soon