diff --git a/src/app/external/externalSignatoryBook/controllers/MaarchParapheurController.php b/src/app/external/externalSignatoryBook/controllers/MaarchParapheurController.php index 5334bb400c00294ff7d03d065978645117f6dd0d..0f3c05632699b0f8d9844dfb5d34c33ac486becf 100755 --- a/src/app/external/externalSignatoryBook/controllers/MaarchParapheurController.php +++ b/src/app/external/externalSignatoryBook/controllers/MaarchParapheurController.php @@ -310,6 +310,10 @@ class MaarchParapheurController 'method' => 'POST', 'bodyData' => $bodyData ]); + + if (!empty($response['errors'])) { + return ['error' => 'Error during processing in MaarchParapheur : ' . $response['errors']]; + } $attachmentToFreeze[$collId][$resId] = $response['id']; } diff --git a/src/core/models/CurlModel.php b/src/core/models/CurlModel.php index 40924277d208c81cdaaae09013aea7e5f92ee65f..161a948542051f1201fbe41639b9c3078cad556f 100644 --- a/src/core/models/CurlModel.php +++ b/src/core/models/CurlModel.php @@ -125,7 +125,9 @@ class CurlModel 'Cache-Control: no-cache', 'Pragma: no-cache', 'Content-length: ' . strlen($aArgs['xmlPostString']), - ] + ], + CURLOPT_SSL_VERIFYHOST => false, + CURLOPT_SSL_VERIFYPEER => false ]; if (!empty($aArgs['soapAction'])) {