I have set up on my laptop IIS7 on Windows 7 using PHP v5.3.8 and added the extension in the PHP.ini the OpenSSL module. So far I have had no issues but then I came to this;
openssl_public_encrypt(): key parameter is not a valid public key
using this code;
Code: Select all
$myPublicKey = openssl_pkey_get_public("requires/paypal/my-pubcert.pem");
openssl_public_encrypt($data, $crypttext, $myPublicKey);
Now I originally did my own research to try to solve this problem but have been unable to do so which is why I'm hear, My findings indicated towards the openssl.cnf which could well be the issue as I haven't indicated in any code the location of the file, but I don't know how or where I do that.
Any help is appreciated