Jump to content
php.lv forumi

soapclient ignorēt certifikātus


anonīms

Recommended Posts

Pašlaik ir soapClient pieprasījums, kas neiet, jo varētu būt, ka netiek cauri sertifikāta pārbaudei (rāda, ka sertifikāts nav drošs, bet tālāk var tikt).

 

jautājums ir kā uzlikt, lai soapclients ignorētu šo sertifikāta pārbaudi?

 

 

Centos kaut kā šādi, bet neiet

$context = stream_context_create(array(
'ssl' => array('verify_peer' => 'false')
));
$soapURL = "https://***dis?wsdl";
$loginData = Array('username' => '***', 'password' => '***') ;
$soapClient = new SoapClient($soapURL, array('encoding'=>'UTF-8','stream_context'=>$context));

 

 

EDIT: ar

 

 'https' => array(
  'curl_verify_ssl_peer'  => false,
  'curl_verify_ssl_host'  => false
 ),

 

arī mēģināts.

Edited by anonīms
Link to comment
Share on other sites


$client = new SoapClient(null, array(
'location' => 'https://***dis',
'uri' => 'send some uri?',
'encoding' =>'UTF-8',
'stream_context' => stream_context_create(array(
'ssl' => array('verify_peer' => 'false')
))
);

 

Neesmu drošs, bet iespējams, ka varētu būt uz to pusi, ko meklē.

 

Tikai testēšanas nolūkiem?

Edited by ezis
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...