Laravel Websockets with AWS ssl configuration - php

I has an error when I try to broadcast on channel
Pusher error: cURL error 35: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://127.0.0.1:6001/apps/1234/events?auth_key=1234&auth_timestamp=1657903485&auth_version=1.0&body_md5=8dc41d7541776abcec80f03003969cf1&auth_signature=c55045c13d8186478889252fcecc021542b3e73854771a1f5bca0c870613eb3f. {"exception":"[object] (Illuminate\Broadcasting\BroadcastException(code: 0): Pusher error: cURL error 35: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://127.0.0.1:6001/apps/1234/events?auth_key=1234&auth_timestamp=1657903485&auth_version=1.0&body_md5=8dc41d7541776abcec80f03003969cf1&auth_signature=c55045c13d8186478889252fcecc021542b3e73854771a1f5bca0c870613eb3f. at /var/www/obelisk/vendor/laravel/framework/src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php:128)
I already started the server
enter image description here
When I try to connect to it it isn’t work if I used ssl configuration
enter image description here
I used for configuration
'local_cert' => '/etc/letsencrypt/live/obeliskapp.com/fullchain.pem',
'local_pk' => '/etc/letsencrypt/live/obeliskapp.com/privkey.pem',
Conclusion :
It is working if I didn’t use ssl certificate and when I try make it secure it isn’t work , can you help me for this issue.
hint: I updated the curl and when I try to use the full domain instead off 127.0.0.1 it can’t connect from the start .
Thanks

Related

Getting error while trying to implement google authentication in my local website

I'm getting following error while trying to implement google authentication in my local website.
Fatal error: Uncaught exception 'GuzzleHttp\Exception\RequestException' with message 'cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)' in C:\xampp\htdocs\social_login_example\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:187.
I surfed the given URL but it didn't provide me any useful information to eliminate the error. What is this error and what can I do to remove it.
I'm using chrome web browser and PHP-5.6.8
$guzzleClient = new \GuzzleHttp\Client(['verify' => false]);
Guzzle version 6

Laravel cURL error 28: SSL connection timeout

I have a form with google recaptcha (if it does anything to do with this error) in my website. I'm running this project locally and sometimes get this error:
ConnectException in CurlFactory.php line 186:
cURL error 28: SSL connection timeout (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
When I refresh the form this error disappears. I checked some solution on stackoverflow and added set_time_limit(0); in my form handling controller but it didn't work

Unable to complete Paypal Instant Payment Notifications due to OpenSSL Error

I am trying to setup Instant Payment Notifications in paypal and am having trouble with POSTing back to tls://www.sandbox.paypal.com during the verification phase.
I am using the code found here: https://developer.paypal.com/docs/classic/ipn/gs_IPN/
Yet, when I try to connect I am receiving these errors:
PHP Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages:
error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure in /htdocs/test.php
fsockopen(): Failed to enable crypto in /htdocs/test.php
I have read the info here and it seems that I am trying to connect using the wrong protocol or I have the wrong cert installed. My OpenSSL is version 1.0.1e.
Unfortunately, I have no idea how to debug this or install the correct cert if necessary
You don't need to install an SSL certificate. It's just that the software stack on your server needs to be updated.
Check this guide on the POODLE Vulnerability for more details.

cURL ERROR: 0: NSS: client certificate not found

I'm trying to connect to a API using SOAP (nusoap client), but when i try and make a request I get this error:
wsdl error: Getting https://example.com/webservices.asmx?WSDL - HTTP ERROR: cURL ERROR: 0: NSS: client certificate not found (nickname not specified)
The API does not require a certificate to connect to the API, but for some reason I am getting an error with a none existent certificate. This code works on my VM, but not on the live site, does anyone know why this error is occurring?
Thanks
Rob

SSL timeouts and "Unknown SSL protocol" errors

Using PHP SDK v3.1.1, I'm experiencing SSL errors that are slows down my app (high traffic) significantly for the last 4-5 days:
"CurlException: 28: SSL connection timeout"
"CurlException: 35: Unknown SSL protocol error in connection to graph.facebook.com:443"
"CurlException: 35: Unknown SSL protocol error in connection to api-read.facebook.com:443"
I saw other people having these issues, so I think it may be on Facebook's side and not mine?
Thanks in advance,
Bar.
Had the same problem, did following for fix after digging in github:
//in your facebook.php file, avoid ssl verification
$opts[CURLOPT_SSL_VERIFYPEER] = false; //add after $opts[CURLOPT_URL] = $url;
Hope it helps

Categories