docusign-esign-php-client icon indicating copy to clipboard operation
docusign-esign-php-client copied to clipboard

SSL Certificate Error in Production Mode with DocuSign API

Open Mrad-Hamza opened this issue 1 year ago • 1 comments

Hello, I'm encountering an issue with the DocuSign API. While everything works perfectly in test mode, switching to production mode triggers the following error:

DocuSign\eSign\Client\ApiException: API call to https://account.docusign.com/oauth/token failed: SSL certificate problem: self signed certificate in certificate chain in App\ElectronicSign\vendor\docusign\esign-client\src\Client\ApiClient.php:321 Stack trace: #0 App\ElectronicSign\vendor\docusign\esign-client\src\Client\ApiClient.php(597): DocuSign\eSign\Client\ApiClient->callApi('/oauth/token', 'POST', Array, 'assertion=eyJ0e...', Array, NULL, NULL, true) #1 App\ElectronicSign\Service\SignatureStrategy\Docusign\DocusignSignature.php(181): DocuSign\eSign\Client\ApiClient->requestJWTUserToken('0eb63...', '1dbd...', '-----BEGIN RSA ...', Array) #2 App\ElectronicSign\Service\SignatureStrategy\Docusign\DocusignSignature.php(278): App\ElectronicSign\Service\SignatureStrategy\Docusign\DocusignSignature->createJWTUserToken()

Details:

  • The integration key is valid for production mode.
  • The SSL certificate being used is not self-signed and is trusted by Microsoft (listed here: Microsoft Trusted Root Program). Could you provide insights on what might be causing this error?

Thank you for your assistance.

Mrad-Hamza avatar Aug 23 '24 10:08 Mrad-Hamza