Lambda function to convert HTML to PDF using wkhtmltopdf failed after upgrading the runtime from Node.js 18 to 20 deployed on AWS
Error::
/tmp/wkhtmltopdf error while loading shared libraries:
libssl.so.10: cannot open shared object file: No such file or directory
When added the library libssl.so.10 , downloaded libopenssl10-1.0.2p-3.80.1.armv7hl.rpm from https://rpmfind.net/linux/rpm2html/search.php?query=libssl.so.10
Error received is a s following
/tmp/wkhtmltopdf error while loading shared libraries: libssl.so.10: cannot open shared object file: wrong ELF class: ELFCLASS32