azure-sdk-for-php
azure-sdk-for-php copied to clipboard
php: unable to find ecdh parameters
Greetings,
We're having an issue where a call to ServicesBuilder that started tonight without intervention from our part. We're using the default sample code in your tutorial under "How to receive messages from a queue".
Our code looks like this:
Works:
// Create Service Bus REST proxy.
$serviceBusRestProxy = ServicesBuilder::getInstance()->createServiceBusService($connectionStringSB);
Fails:
$options = new ReceiveMessageOptions();
$options->setPeekLock();
$options->setTimeout(180);
$serviceBusRestProxy->receiveQueueMessage($eventExtractionQueue, $options);
And fails with:
Error: stream_socket_client(): unable to connect to tls://xyz-sb.accesscontrol.windows.net:443 (Unknown error)
stream_socket_client(): Failed to enable crypto
stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1408D13A:SSL routines:SSL3_GET_KEY_EXCHANGE:unable to find ecdh parameters
It would seem there's no Diffie Hellman parameter key file available for PHP to load in the Azure App Service.
This is an urgent issue. Looking forward to feedback.
Closing – solution was to bump PHP version from 5.4 to 5.6.
Doenst not work the solution. In my case, the problems occurs when i call method via rest (api), and dont show this error when i call via browser