PHP webservice connection occurring Curl ERROR: 35

Asked

Viewed 393 times

1

Hello, I am trying to make a connection to a webservice that uses SSL security, and it is necessary to use a certificate. I was trying initially on a linux server, but now I’m using it on my windows and xampp computer. I already tried the connection with the Nusoap bilbioteca and using PHP’s Soapclient.

The error that is occurring is: HTTP Error: Curl ERROR: 35: Unknown SSL Protocol error in Connection to

Dice: Apache/2.4.17 (Win32) Openssl/1.0.2d PHP/5.6.21 CURL: 7.47.1 Nusoap Library v 1.123

Solution:

I solved my problems by changing two points of my connection:

  • First, I read in some places that it could be certificate problem. My certificate was with private key and 3 certificates(Begin Certificate). I left the private key and the first bristled, removing the rest of the certificate chain.
  • Second, I saw that when making an SSL connection, the PHP timeout setting can be ignored, so it is necessary to inform the parameter "connection_timeout" when making the SSL connection.
  • What is the code you used and the url you are trying to access? tried in the browser (browser)? and what appeared?

  • Oops. It was worth the attention, I solved the problem.

  • Good Reiji. Good

1 answer

0

You can try changing the Settings of Curl SSL for version 3:

curl_setopt($ch, CURLOPT_SSLVERSION,3);
  • Oops. It was worth the attention, I solved the problem.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.