Jump to content

Paypal OpenSSL help


scarz

Recommended Posts

Hi,

 

I'm setting up a website with a custom built shopping basket which I want to link in with Paypal.

I have it all done except I'm having trouble getting the button encryption working using OpenSSL.

 

I have all the certificates done and uploaded to Paypal but when I use this function;

 

$myPublicKey = openssl_pkey_get_public("requires/paypal/my-pubcert.pem");
openssl_public_encrypt($data, $crypttext, $myPublicKey);

 

It produces this error;

 

openssl_public_encrypt(): key parameter is not a valid public key

 

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 with this is appreciated.

 

Scarz

Link to comment
https://forums.phpfreaks.com/topic/246814-paypal-openssl-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.