Visa Developer Community

Highlighted
Regular Visitor

Error Code: 58 when executing sample code / PHP

Hi,

 

I have downloaded the PHP sample code, have made the  settings into configuration.ini, and copied the cert.pem and <key>.pem into local directory. When I try to execute the code I am having the following error:

 

Error: "SSL: Can't load the certificate "security/cert.pem" and its private key: OSStatus -25299" - Code: 58

 

I am using the same certificate files in SOAPUI with no issues.

 

 

2 REPLIES 2
Community Manager

Re: Error Code: 58 when executing sample code / PHP

Hi there,

You need to upgrade the cert.pem with the actual project pem file and private key. This can accessed from the directory.

Let me know if you have more questions.

Thanks,
Ricardo



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
Regular Visitor

Re: Error Code: 58 when executing sample code / PHP

I have succedded to solve the authentication problem by adding: CURLOPT_SSL_VERIFYHOST=0 and CURLOPT_SSL_VERYFYPEER=0.