Hi QZ Tray Team,
I encountered an issue after upgrading my server from PHP 7.3 to PHP 8.3.
Previously, I used:
openssl_sign($req, $signature, $privateKey);
to sign requests, and QZ Tray accepted the signature.
In PHP 8.3, this is deprecated, so I changed to:
openssl_sign($data, $signature, $privateKey,
OPENSSL_ALGO_SHA256);
However, QZ Tray does not recognize this signature.
I understand that QZ Tray only accepts SHA1withRSA signatures.
With PHP 8.3 + OpenSSL 3.x, I am unable to generate SHA1withRSA signatures because SHA1 is disabled by default in OpenSSL 3.x for security reasons.
Could you please confirm the recommended approach to generate SHA1withRSA signatures compatible with QZ Tray on modern PHP/OpenSSL versions?
Thank you for your support.
Best regards,
I understand that QZ Tray only accepts SHA1withRSA signatures.
--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/qz-print/f9fdd225-b5a2-41b0-ac2b-a033b51c1669%40micropassion76.com.
qz.security.setSignatureAlgorithm("SHA256"); // ^--- Add this to your JavaScript code qz.security.setSignaturePromise(function(toSign) { // ... });
PS : I understand that QZ Tray [...] accepts [more than] SHA1withRSA signatures. chatgpt says stupid things sometimes ...