I try to use the docusign api in my symfony project. I followed the php sdk documentation.
I want to call the api to create enveloppe and send document.
public function signatureRequestFromTemplate(){
$username = 'myUsername';
$password = 'pswd';
$integrator_key = $this->integratorKey;
// change to production (www.docusign.net) before going live
$host = "https://demo.docusign.net/restapi/v2";
// create configuration object and configure custom auth header
$config = new DocuSign\eSign\Configuration();
$config->setHost($host);
$config->addDefaultHeader("X-DocuSign-Authentication", "{\"Username\":\"" . $username . "\",\"Password\":\"" . $password"\",\"IntegratorKey\":\"" . $integrator_key . "\"}");
// instantiate a new docusign api client
$apiClient = new DocuSign\eSign\ApiClient($config);
$accountId = null;
try{
//*** STEP 1 - Login API: get first Account ID and baseURL
$authenticationApi = new DocuSign\eSign\Api\AuthenticationApi($apiClient);
$options = new \DocuSign\eSign\Api\AuthenticationApi\LoginOptions();
$loginInformation = $authenticationApi->login($options);
}
//........//
}
After this step i have an exception:
Exception: API call to https://demo.docusign.net/restapi/v2/login_information failed: SSL certificate problem: unable to get local issuer certificate
What i have to do? Or do you have a easily way to integrate this api with symfony?