php
1require_once 'SOAP/Client.php'; 2$client = new SOAP_Client('https://soap/example.com/api?wsdl'); 3$param = array( 4 'Request' => array( 5 'abc' => 123, 6 'def' => 456, 7 ), 8); 9$response = $client->ClientMethod($param); 10var_dump($response);
上記プログラムを実行すると以下のエラーが表示されます。
log
1object(SOAP_Fault)#4 (8) { 2 ["error_message_prefix"]=> 3 string(0) "" 4 ["mode"]=> 5 int(1) 6 ["level"]=> 7 int(1024) 8 ["code"]=> 9 string(4) "HTTP" 10 ["message"]=> 11 string(165) "curl_exec error 60 SSL certificate problem, verify that the CA cert is OK. Details: 12error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed" 13 ["userinfo"]=> 14 string(0) "" 15 ["backtrace"]=> 16 array(9) { 17 [0]=> 18 array(7) { 19 ["file"]=> 20 string(30) "/usr/share/pear/SOAP/Fault.php" 21 ["line"]=> 22 int(64) 23 ["function"]=> 24 string(10) "PEAR_Error" 25 ["class"]=> 26 string(10) "PEAR_Error" 27 ["object"]=> 28 *RECURSION* 29 ["type"]=> 30 string(2) "->" 31 ["args"]=> 32 array(5) { 33 [0]=> 34 string(165) "curl_exec error 60 SSL certificate problem, verify that the CA cert is OK. Details: 35error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed" 36 [1]=> 37 string(4) "HTTP" 38 [2]=> 39 NULL 40 [3]=> 41 NULL 42 [4]=> 43 string(0) "" 44 } 45 } 46※省略
上記、soap.example.comのサーバ証明書にチェーンする証明書を設定する方法をご教授いただきたく質問致します。
以上、宜しくお願い致します。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。