Id crypto_method is decrypted in Soap

Hello Guys,

I want send Soap requests using TLS1.2 and SHA2. Have googled a lot but no accurate solution found.

What am i doing is

$client = new SoapClient(
            $url,
            array(
              'ssl_method'     => SOAP_SSL_METHOD_TLS,
              'cache_wsdl'     => WSDL_CACHE_NONE,
              'trace' => 1,
              'stream_context' => stream_context_create(
                array(
                  'ssl'=> array(
                    'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT,
                    'ciphers' => 'SHA256',
                    'verify_peer'=>false,
                    'verify_peer_name'=>false, 
                    'allow_self_signed' => true //can fiddle with this one.
                  )
                )
              )
            )
          )

But i can not verify is the request sent via TLS1.2 and SHA2 or not. Is there any way to do it?

Are you using PHP 7? Because it’s deprecated in PHP 7. I remember they deprecated one of the crypto_ functions in PHP 7.1 RC 6.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.