scarz Posted September 9, 2011 Share Posted September 9, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/246814-paypal-openssl-help/ Share on other sites More sharing options...
redarrow Posted September 10, 2011 Share Posted September 10, 2011 Sorry you can not use any openssl with paypal they use there own security methods. if you go to the paypal help forum, there tell you, paypal are so friendly and helpful on there forum. Quote Link to comment https://forums.phpfreaks.com/topic/246814-paypal-openssl-help/#findComment-1267618 Share on other sites More sharing options...
scarz Posted September 11, 2011 Author Share Posted September 11, 2011 Thanks for the reply, The reason I am using OpenSSL is because the Paypal website specifically asks for it in the set-up I'm creating. How ever I will ask on the Paypal forum. Quote Link to comment https://forums.phpfreaks.com/topic/246814-paypal-openssl-help/#findComment-1268038 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.