php openssl_sign key type not supported in this PHP
Clash Royale CLAN TAG#URR8PPP
php openssl_sign key type not supported in this PHP
I have a method that works on my local server which uses the latest php. However, when I uploaded to our production server which uses a lower version of php, I'm getting an error
Warning: openssl_sign() [function.openssl-sign]: key type not supported in this PHP build!
Here is the line of the code that's cause the problem.
if(!openssl_sign($payload, $result, $key, OPENSSL_ALGO_SHA256))
return false;
Is there an equivalent method for this in an earlier version? Thanks.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
What type of key are you using, and which version of PHP? Possible duplicate of PHP openssl_sign() ecparam key type not supported in this PHP build
– Reinier Torenbeek
Aug 13 at 20:21