Problem: When connecting to the JD payment interface, the local dome-written program can be used, but when running online, the openssl_private_encrypt() function cannot continue to run, no error is reported, and no data is returned.
As shown in the picture:
The local one is php5.6, open openssl, Windows 7
The server is php5.4, openssl is turned on, Windows Server 2012 R2
When running openssl_private_encrypt(), openssl_pkey_get_private() can obtain the key resources. It has been debugging for a long time. Thank you for your help. It is also my first time to use openssl. Some places are not very clear. If there are other conditions missed Yes, please let me know to make up for it.
Want to know:
1.Do different versions of php have any impact on openssl? 2.Why can’t it run?
3.How to solve it?
Added on 11/29:
openssl_private_encrypt() parameters, if there is no
die;or the same request as the top picture, please help!
As shown in the picture:
Want to know:
1.Do different versions of php have any impact on openssl? 2.Why can’t it run?
3.How to solve it?
After debugging and searching all morning, I couldn’t find a solution. Please give me your answer.
Added on 11/29:
openssl_private_encrypt() parameters, if there is no die;
or the same request as the top picture, please help!
If you are using Apache,
Copy the libeay32.dll and ssleay32.dll files in the PHP directory to the BIN directory of Apache
Before copying, stop apache first