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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.