Export to pdf not working in both dev and prod

Can anyone confirm if export to pdf buttons in sc forms work?

I’m using the latest SC version on Fedora 40 on both the dev and prod servers.
On the dev server I used the SC provided full setup.

In both environments the behavior is identical.

When the button is clicked, it doesn’t return any error and it will show the gui to view or download the pdf file, but the file is not generated.

In the server tmp dir there’s a log file with the wkhtmltopdf-amd64 command line that sc used to try and generate the pdf file.
Manually executing that command line returns a lot of QSslSocket errors

Loading pages (1/6)
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

To fix it on both the dev and prod servers, I installed the os provided wkhtmltopdf package and linked the SC provided “wkhtmltopdf-amd64” file to the os provided “wkhtmltopdf” file.

For example, in dev:

cd /opt/NetMake/v9-php81/wwwroot/scriptcase/prod/third/wkhtmltopdf/linux-amd64
mv wkhtmltopdf-amd64 wkhtmltopdf-amd64.original
yum install wkhtmltopdf
ln -s /usr/bin/wkhtmltopdf wkhtmltopdf-amd64

Note that the SC provided wkhtmltopdf is version 0.12.4 while the os version is 0.12.6, so maybe that’s why now it works?

Now i can export to pdf again, but i guess i’ll have to reapply the fix when updating SC or the prod env.