We had installed SSL certificates in my Drupal project in AWS server, the website works fine with https. In this site we had configured our custom wallee module which is using Drupal Wallee SDK for payment transaction related functions. But while trying to initiate a new payment transaction below SSL certificate problem is triggering.
error setting certificate verify locations: CAfile: /var/www/html/walle/vendor/wallee/sdk/lib/ca-bundle.crt CApath: none
As per our understanding the SSL certificates are not getting verified before establishing Curl connection to Wallee transaction API.
The code where the error is triggering is in /vendor/wallee/sdk/lib/Http/CurlHttpClient.php line no 56
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($curl, CURLOPT_CAINFO, $apiClient->getCertificateAuthority());
About my test server environment : I am using AWS free tier server, PHP 7.3, Drupal 8 and wallee sdk 1.2 versions.
Our custom wallee module is an extension which adds wallee payment gateway to "Drupal Commerce" Module. The link to our custom module is https://www.webshopextension.com/en/drupal-wallee
We had tried different solutions from google, but no hope. We can't identify what is causing the issue. Did anyone face same issue, please help.